圆角EditText
2016-03-22 14:30
309 查看
首先定义一个圆角xml
res/drawable/round_edittext.xml
然后在EditText属性里设置background
res/drawable/round_edittext.xml
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp"> <solid android:color="#FFFFFF" /> <corners android:bottomRightRadius="15dp" android:bottomLeftRadius="15dp" android:topLeftRadius="15dp" android:topRightRadius="15dp" /> </shape>
然后在EditText属性里设置background
android:background="@drawable/round_edittext"
相关文章推荐
- Mac > 编写跨平台桌面应用开发工具,基于 Web 技术
- Nginx_HTTP 499 状态码 nginx下 499错误
- 文件上传、下载
- 定义zabbix_action报警通知模板
- 43 - Multiply Strings
- 多语言
- 分布式SESSION
- 机器学习简易入门(二) - 分类
- HandleErrorAttribute只能处理httpStatusCode为500的异常(服务器异常)
- problem G
- hdu1506 Largest Rectangle in a Histogram--DP/栈
- 提示javax.servlet.http.HttpServlet不存在
- iOS多线程编程技术之NSThread、Cocoa NSOperation、GCD
- python进程和线程学习
- string.IsNullOrEmpty和string.IsNullOrWhiteSpace方法的区别
- JS在新窗口打开页面
- RecyclerView使用
- 什么是签名、为什么要给应用程序签名、如何给应用程序签名
- Spring-mvc静态资源无法加载
- Android Material Design 官网翻译学习笔记(开篇)