简单又好看的按钮,扁平化按钮。
来源:互联网 发布:mac装win10wifi搜不到 编辑:程序博客网 时间:2024/04/29 07:39
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="#e79429" /> <!--圆角--> <corners android:radius="10dp" /> </shape> </item> <!--默认背景--> <item> <shape> <solid android:color="#f6aa3e" /> <corners android:radius="10dp" /> </shape> </item> </selector>
设置button的背景
<Button android:id="@+id/one" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:background="@drawable/button" android:paddingBottom="8dp" android:paddingLeft="25dp" android:paddingRight="25dp" android:paddingTop="8dp" android:text="我要赠送" android:textColor="@color/White" android:textSize="18sp" />
http://mzh3344258.blog.51cto.com/1823534/1215749
0 0
- 简单又好看的扁平化按钮。
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,扁平化按钮.
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,圆角扁平化按钮。
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,扁平化按钮。
- 简单又好看的按钮,扁平化按钮。
- Android 扁平化按钮
- 按钮扁平化实现
- 设置扁平化按钮
- 扁平化按钮
- 好看的网页按钮
- 好看的按钮样式
- 好看的按钮样式
- 好看的按钮效果
- CSS3好看的按钮
- 好看的CSS按钮
- 使用NTP协议获取网络时间代码
- matlab 素描 code
- 浅谈HTTP中Get与Post的区别
- win7 64位下VS2010/VS2012 下安装 ITK/VTK(一)
- Perl里如何捕获并保存警告
- 简单又好看的按钮,扁平化按钮。
- Access denied for user 'SYSTEM'@'localhost' (using password: NO)--解决方案
- compact处理流程分析
- 山东大学(威海)CSDN高校俱乐部成功举办校园巡讲会
- 华为编程大赛-字符串匹配
- cocos2d-x-lua工程的lua脚本加密
- 如何让IOS应用从容地崩溃
- IOS7下的UITabBarItem 的背景图片的设置
- 底层实现查找集合的公用方法