android 上下滚动文字_Android 小结

I Want It That Way

Backstreet Boys - Viva Hits 6该音乐因版权失效无法播放,请更换音乐

Android 小结

2cc1fb61d3558e6e9b4f616bb8dbf452.gif01全屏上下滚动

    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.gif0 2多线程设置UI 

多线程设置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.gif03百度地图 安全码

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.gif04百度地图Key

GMl1OLLgtDQfCjTGNHPwNb0oowHNwuHx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值