您的位置:首页 > 其它

控件属性

2016-04-16 20:07 190 查看
TextView

singleLine 为true时,表示text只能单行显示

ellipsize = “end” 设置文本超过控件宽度的时候,文本的缩略方式,end表示在尾部进行缩略

paddingLeft 表示文字到控件 左边的距离。以此类推

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="end"
android:paddingLeft="10dp"
android:paddingRight="15dp"
android:paddingTop="5dp"
android:paddingBottom="20dp"/>


1. ImageView  scaleType="fitXY"表示让这张图填充整个控件的大小


</ImageView
android:scaleType="fitXY"
/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  控件