设置扁平化按钮
来源:互联网 发布:为什么kfc连不上网络 编辑:程序博客网 时间:2024/06/11 17:49
在res->drawable-hdpi下创建XML
button.xml代码如下:
<?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="#EE82EE"/> <corners android:radius="8dp"/> </shape> </item> <item android:state_pressed="false"> <shape > <solid android:color="#DA70D6"/> <corners android:radius="8dp"/> </shape> </item></selector>
在button背景图片引用button.xml就行了
android:background="@drawable/button"
效果图:
1 0
- 设置扁平化按钮
- Android 扁平化按钮
- 按钮扁平化实现
- 扁平化按钮
- Android 按钮的扁平化(圆角化)
- 一个扁平化的H5按钮
- 简单又好看的扁平化按钮。
- 调节按钮亮度,调节扁平化
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,扁平化按钮.
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,圆角扁平化按钮。
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,扁平化按钮。
- Ubuntu设置扁平化风格桌面
- [Android]仿微信开关按钮:)扁平化简洁风
- Android开发_扁平化按钮的实现
- 《Hello Arduino》数电I/O
- 如何利用多核CPU来加速你的Linux命令 — awk, sed, bzip2, grep, wc等
- 第三章 栈和队列 思维导图
- 2014ACM亚洲区北京赛区 1011K.Bro Sorting
- IIS 7.5 + PHP-5.6.3 + mysql-5.6.21.1
- 设置扁平化按钮
- ios 字符串去除特殊字符stringByTrimmingCharactersInSet
- 创建数据库
- python 入口
- Hduoj2952【搜索水题】
- Linux之安装python3.*
- 硬盘基本知识(磁道、扇区、柱面、磁头数、簇、MBR、DBR)
- POJ 2096 Collecting Bugs 马尔可夫链 概率DP
- 国家气象局 接口 json解析utf-8编码出错乱码