一丶限制文本个数,行数,其余的省略号
maxEms:一行的字数20(指的是在屏幕中占的宽度),和maxLength不同
lines :行数
二丶文字阴影效果
shadowDy :y方向像素
shadowDx :x方向像素
shadowColor :阴影颜色
shadowRadius :阴影半径(值越大越模糊)
<EditText
android:layout_weight="1"
android:maxEms="20"
android:focusable="true"
android:inputType="text"
android:id="@+id/id_input_et"
android:ellipsize="end"
android:lines="2"
android:layout_width="match_parent"
android:layout_height="40dip"
android:background="@null"
android:hint="请输入内容(1-20字)" />
maxEms:一行的字数20(指的是在屏幕中占的宽度),和maxLength不同
lines :行数
二丶文字阴影效果
<Button
android:id="@+id/bt_live_end_attention"
android:layout_width="80dp"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:background="@drawable/rectangle_3"
android:gravity="center"
android:shadowColor="#80000000"
android:shadowDx="3"
android:shadowDy="0"
android:shadowRadius="1"
android:text="关注"
android:textColor="@color/white"
android:textSize="15sp" />
shadowDy :y方向像素
shadowDx :x方向像素
shadowColor :阴影颜色
shadowRadius :阴影半径(值越大越模糊)