设置圆角搜索框
来源:互联网 发布:淘宝扑克牌 编辑:程序博客网 时间:2024/05/16 06:33
设置TextView的中划线
text.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);设置圆角边框
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/yj" android:orientation="horizontal" android:gravity="center" > <ImageView android:id="@+id/imageView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_launcher" /> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@null" android:hint="搜索" /> </LinearLayout></LinearLayout>
在drawable里设置一个xml
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android">设置边框颜色和宽度<stroke android:color="#000" android:width="3dp" />设置圆角大小 <corners android:bottomLeftRadius="20dp" android:topLeftRadius="20dp" android:topRightRadius="20dp" android:bottomRightRadius="20dp" ></corners>设置内容与边框的距离 <padding android:bottom="10dp" android:right="50dp" android:left="10dp" android:top="10dp" ></padding></shape>
阅读全文
0 0
- 设置圆角搜索框
- 搜索框设置填充
- 设置搜索框的图片
- 搜索设置
- HTML设置input搜索框onfocus样式
- 设置京东搜索框状态栏渐变
- 安卓顶部圆角搜索框、搜索图标
- 设置一个 "非" 搜索
- 【搜索】【RQNOJ】医院设置
- 设置so搜索路径
- 设置VC6搜索路径
- matlab搜索路径设置
- 设置VC6搜索路径
- windows 8 搜索设置
- jquery搜索设置默认值
- 设置gdb搜索目录
- 设置VC6搜索路径
- Windows下搜索设置
- dubbo找不到dubbo.xsd报错
- stm32 memcpy 错位问题
- 异常java.lang.IllegalArgumentException: null
- Python学习表达式与语句
- 百度Java面试集锦
- 设置圆角搜索框
- Docker安装mysql 就这么简单
- 【树链剖分】QtreeⅣ&QtreeⅤ题解
- Java 中实现单例模式
- spring配置文件详解--注解方式
- MGR错误日志出现大量Got an error reading communication packets报错
- 承担集团数万应用、研发人员日常工作,阿里持续交付平台的设计、迭代之道
- 【观察】上云,下省,SAP渠道新政释放了哪些关键信号?
- 变量