无名 发表于 2022-5-8 18:38:14

【万圣节】aide实现跑马灯效果


[滑稽]

第一步:打开aide,选择实战,新建应用

第二步:<TextView的属性改为

    <TextView
      android:text="内容"
      android:layout_width="300sp"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:marqueeRepeatLimit="marquee_forever"
      android:ellipsize="marquee"
      android:scrollHorizontally="true"
      android:focusable="true"
                android:focusableInTouchMode="true"
                android:singleLine="true" />
http://cdn.u1.huluxia.com/g3/M02/22/82/wKgBOV28V9SAZ_dNAAIN0C9wNIg786.png
http://cdn.u1.huluxia.com/g3/M02/22/82/wKgBOV28V9WAFVlzAAKtvV5c7UU334.png
第三步:点击上面那个类似三角形的图标进行编译,然后安装,进入软件看看效果
http://cdn.u1.huluxia.com/g3/M02/22/82/wKgBOV28V9aASRyNAAPxp1VFzWM609.jpg
http://cdn.u1.huluxia.com/g3/M02/22/82/wKgBOV28V9eAGwNtAAKIisJ0-UM413.png

测试结果:
http://cdn.u1.huluxia.com/g3/M02/22/82/wKgBOV28V9iAciSrAADQ8XkBGJo284.png

成功,教程结束[滑稽]
页: [1]
查看完整版本: 【万圣节】aide实现跑马灯效果