I Want It That Way
Backstreet Boys - Viva Hits 6该音乐因版权失效无法播放,请更换音乐Android 小结
![2cc1fb61d3558e6e9b4f616bb8dbf452.gif](https://img-blog.csdnimg.cn/img_convert/2cc1fb61d3558e6e9b4f616bb8dbf452.gif)
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
android:id="@+id/neirong"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:textSize="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
将原来的布局文件直接改为 ScrollView,再添加LinearLayout 就可实现全屏的上下滚动,这样就能解决文字在屏幕内放不下的情况。
![2cc1fb61d3558e6e9b4f616bb8dbf452.gif](https://img-blog.csdnimg.cn/img_convert/2cc1fb61d3558e6e9b4f616bb8dbf452.gif)
多线程设置UI
Handler handler;
handler = new android.os.Handler() {
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
case 1:
break;
case 2:
neiRong.setText(msg.obj.toString());
break;
case 3:
break;
}
}
};
Message msg1 = new Message();
msg1.what = 1;
handler.sendMessage(msg1);
Message msg1 = new Message();
msg1.obj="hehe";
msg1.what = 2;
handler.sendMessage(msg1);
我们该怎样“冬眠”?![2cc1fb61d3558e6e9b4f616bb8dbf452.gif](https://img-blog.csdnimg.cn/img_convert/2cc1fb61d3558e6e9b4f616bb8dbf452.gif)
D4:66:C1:1D:74:C7:C5:D6:66:D1:F5:D7:69:FD:7B:8F:51:98:DB:83;com.example.baiduditu_1
![2cc1fb61d3558e6e9b4f616bb8dbf452.gif](https://img-blog.csdnimg.cn/img_convert/2cc1fb61d3558e6e9b4f616bb8dbf452.gif)
GMl1OLLgtDQfCjTGNHPwNb0oowHNwuHx