自定义drawable
来源:互联网 发布:ubuntu下php环境搭建 编辑:程序博客网 时间:2024/06/16 09:34
下面代码为画一个右侧有小圆角的白边绿色的背景图
xml中自定义drawable:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:topLeftRadius="0dip" android:topRightRadius="10dip"
android:bottomLeftRadius="0dip" android:bottomRightRadius="10dip" />
</shape>
</item>
<item android:top="1dip" android:bottom="1dip" android:left="1px"
android:right="1dip">
<shape>
<gradient android:startColor="@color/green"
android:endColor="@color/green"
android:type="linear" android:angle="90" android:centerX="0.5"
android:centerY="0.5" />
<corners android:topLeftRadius="0dip" android:topRightRadius="10dip"
android:bottomLeftRadius="0dip" android:bottomRightRadius="10dip" />
</shape>
</item>
</layer-list>
- 自定义drawable
- 自定义drawable
- 自定义Drawable
- 自定义drawable
- 自定义Drawable
- 自定义drawable
- 自定义Drawable
- 自定义Drawable
- 自定义drawable
- 自定义drawable(shape)
- code自定义的Drawable
- 自定义drawable(shape)
- 自定义drawable(shape)
- 自定义drawable(shape)
- android 自定义View drawable
- Android自定义drawable
- android自定义drawable图形
- 自定义drawable android:shape
- leetcode--Same Tree
- SpringMVC学习(一)
- Kafka(二):环境搭建&测试
- 笔记111--调用相机并裁剪,从相册截图。及原理分析
- AndroidUI:Android的Holo Theme
- 自定义drawable
- Hibernate - is not mapped
- 解决phpmyadmin上传文件大小的限制
- Android Virtual Devices
- Adaboost 算法的原理与推导
- Stream自行总结的技巧,如果设置一个字节数组接收一个未知长度的流Stream
- 《学生在线学习系统》开发心得
- ffmpeg tutorial1
- 二、使用find和xargs