基础格式
《TestView 盒子组件》
id 标记
layout_width 宽度
layout_height 高度 warp_content跟随上级大小 /自动大小 / 10dp 自定义大小
background 背景颜色或格式 #00000000 / .jpg
text 显示文本 Helllo
textSize 文本大小 sp
textColor 文本颜色
带阴影的 TextView
shadowColor 阴影颜色与 shadowRaldlus一起使用
shadowRadlus 模糊程度 3.0
shadowDx 水平方向偏移
shadowDy 垂直方向偏移
跑马灯效果
singleLine 内容单行显示
focusable 是否可以获取焦点
focusablelnTouchMode 控制试图在触摸模式下是否可以聚集
ellipsize 在哪里省略文字
marqueeRepeatLimit 字母动画重复的次数
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:ignore="MissingConstraints">
<TextView
android:id="@+id/count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/tv_one"
android:text="Hello World!"
android:textColor="#FF0000FF"
android:textSize="0sp"
android:shadowRadius="3.0"
android:shadowColor="@color/white"
android:shadowDx="10.0"
android:shadowDy="10.0"
/>
</LinearLayout>