Button 样式及selector选择器
来源:互联网 发布:网络产品包装的作用 编辑:程序博客网 时间:2024/05/16 06:07
<?xml version="1.0" encoding="utf-8" ?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@android:color/background_light" android:state_pressed="true"></item> <item android:drawable="@android:color/background_light" android:state_focused="true"></item> <item> <shape> <!--圆角--> <corners android:radius="20dp"></corners> <!--渐变--> <gradient android:startColor="#eae237"></gradient> <!--内边距--> <padding android:bottom="20dp"></padding> <!--填充颜色--> <solid android:color="#f73c24"></solid> <!--边框 width:边框宽度 color:边框颜色 dashGap:边框线的间隔 dashWidth:边框线的长度--> <stroke android:width="10dp" android:color="#0feebb" android:dashGap="3dp" android:dashWidth="100dp"></stroke> </shape> </item></selector>
<Button android:id="@+id/button7" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/button6" android:text="按钮的selector选择器" android:background="@drawable/button_selector" />
0 0
- Button 样式及selector选择器
- android背景选择器selector用法、自定义Button按钮样式..........
- android背景选择器selector用法、自定义Button按钮样式
- Android的selector,Button按钮背景选择器
- android的selector背景选择器(Button篇)
- 利用选择器修改button样式
- Android selector自定义shape的button样式
- android button selector disable 样式问题
- 倒计时Button,及Button样式
- jquery selector及层级选择器
- NIO及Selector多路复用选择器
- Android样式和主题之选择器Selector
- Android Button的四种点击事件及RadioButton 的点击事件,背景选择器<selector>的使用
- 状态选择器及Button形状
- android背景选择器selector用法汇总 imageButton和Button
- JQuery二:jQuery()使用及选择器selector
- Android:背景选择器selector及shape详解
- AN button自定义样式 && AN selector和shape的使用
- JPA实现的CRUD
- 推送机制
- 递归复习,递归输出字符串的全排列
- 我是菜鸟:concurrentHashMap实现原理
- 【笔试】41、二叉搜索树的后序遍历列
- Button 样式及selector选择器
- 原来UIWindow可以自定义frame
- TQ2440 学习笔记—— 21、中断体系结构
- 树状数组求区间最大值
- 不要怀疑家人的爱
- 半边数据结构及其使用
- POJ1410Intersection【判断线段与矩形相交+点在矩形内的简单判定】
- uva455 - Periodic Strings
- 设计模式概述