Android 圆图,正方形图等各种样式的xml的定义
2018-02-07 15:04
411 查看
圆形的图片的:
正方形的只需要把
换成
也就是shape的属性。
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="#94C5FF" /> <size android:width="20dp" android:height="20dp" /> </shape>
正方形的只需要把
android:shape="oval"
换成
android:shape="rectangle"
也就是shape的属性。
相关文章推荐
- Android之定义各种样式的标题栏
- Android自定义View在xml中定义样式可以定义的类型
- Android中各种颜色在dawable.xml中的定义
- Android 怎样在styles.xml中定义自己的样式并引用样式
- Android之定义各种样式的标题栏
- Android 利用xml实现各种样式等
- Android各种颜色dawable.xml中定义
- Android 中使用xml定义各种Drawable
- 【已解决】Android中xml中TextView引用已定义好的样式时出错:android.view.InflateException: Binary XML file line #14: Error
- 【android】在xml文件中定义drawable数组、id数组等
- 善用Android预定义样式
- 善用Android预定义样式
- Android string.xml字符串的格式化和样式
- Android预定义样式
- Android资源文件中各种XML的作用与解释
- android 资源文件string.xml字符支持HTML样式和格式
- Android平台定义的主题样式:
- android 通过获得dimens.xml中定义的大小来设置字体的大小
- 对Xml的文件操作,根据数据的配置和数据样式的定义,将结果字符输出
- 善用Android预定义样式