一个文件就写出一个selector
来源:互联网 发布:dota2 mac版分辨率 编辑:程序博客网 时间:2024/06/15 10:21
以前写selector都要三个文件,今天发现用一个文件就可以实现:
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true"> <shape> <solid android:color="#f2f2f2" /> <corners android:bottomLeftRadius="5dp" android:bottomRightRadius="5dp" android:topLeftRadius="5dp" android:topRightRadius="5dp" /> <stroke android:width="1px" android:color="#ffd1d1d1" /> </shape> </item> <item> <shape> <solid android:color="#ffffff" /> <corners android:bottomLeftRadius="2.5dp" android:bottomRightRadius="2.5dp" android:topLeftRadius="2.5dp" android:topRightRadius="2.5dp" /> <stroke android:width="0.5px" android:color="#ffd1d1d1" /> </shape> </item></selector>
0 0
- 一个文件就写出一个selector
- 写出一个死锁程序!!
- Selector的一个坑
- 一个 selector工具类
- 对一个文件的写入写出操作--IO流
- 删除一个文件夹中所有的文件? 写出代码.
- 如何在Android Studio中创建一个selector.xml文件
- 下载一个文件就这么难
- 写出一个函数,能够遍历一个文件下的所有文件夹和子文件夹(新浪)
- 一个单例还能写出花来?
- php读取一个文件后就清除文件的内容
- 给一个单链表,不知道结点N的值,怎样只遍历一次就可以求出中间结点,写出算法
- 给出一个单链表,不知道节点N的值,怎样只遍历一次就可以求出中间节点,写出算法。
- 给出一个单链表,不知道节点N的值,怎样只遍历一次就可以求出中间节点,写出算法!
- Gerrit打包安装,只要下载一个文件就可以了
- 懒就一个字
- 就差一个b
- 乱就一个字
- open suse 42.1常用软件源(包括阿里云)
- 12.CentOS7下PostgreSQL安装过程
- DB2 查看数据库的创建时间
- 第8节 C语言五大类型之基本数据类型
- Mysql 批量修改表结构
- 一个文件就写出一个selector
- ARM串口实验,ADC实验,I2C实验
- Apache Solr入门基础——Windows下安装与配置
- BPSK+AWGN信道下画出误符号率和误比特率的性能曲线
- java中的重载和重写(行业术语很重要)
- JAVA面试题
- 虚拟机安装遇到的几个小问题及解决方法
- Centos安装php高版本
- 不怕错