摘要:
常用属性详解 1、android:max:进度条的最大值 2、android:progress:进度条已完成进度值 3、android:indeterminate:如果设置成true,则进度条不精确显示进度 4、style="?android:attr/progressBarStyleHorizon 阅读全文
posted @ 2021-08-12 23:14
Testtext
阅读(69)
评论(0)
推荐(0)
摘要:
主要属性 1、android:src 设置图片资源 2、android:scaleType 设置图片缩放类型 3、android:maxHeight 最大高度 4、android:maxWidth 最大宽度 5、android:adjustViewBounds 调整View的界限 缩放类型 1、fi 阅读全文
posted @ 2021-08-12 22:48
Testtext
阅读(177)
评论(0)
推荐(0)
摘要:
主要属性 1、android:hint 输入提示 2、android:textColorHint 输入提示文字的颜色 3、android:inputType 输入类型 4、android:drawableXxxx 在输入框的指定方位添加图片 5、android:drawablePadding 设置图 阅读全文
posted @ 2021-08-12 17:40
Testtext
阅读(102)
评论(0)
推荐(0)
摘要:
StateListDrawable StateListDrawbble是Drawable资源的一种,可以根据不同的状态,设置不同的图片效果,关键节点<selector>, 我们只需要将Button的background属性设置为该drawable资源即可轻松实现,按下按钮时不同的按钮颜色或背 景。 阅读全文
posted @ 2021-08-12 16:28
Testtext
阅读(304)
评论(0)
推荐(0)
摘要:
基础属性: 1、layout_width: 组件的宽度 2、layout_height: 组件的高度 3、id: 为TextView设置一个组件id 4、text: 设置显示的文本内容 5、textColor: 设置字体颜色 6、textStyle: 设置字体风格,三个可选值:normal(无效果) 阅读全文
posted @ 2021-08-12 00:39
Testtext
阅读(107)
评论(0)
推荐(0)

浙公网安备 33010602011771号