android 中 EditText加入图标 更改边框颜色 设置透明 代码
2012-10-28 17:16
597 查看
main.xml
在drawable中建一个xml文件:shape.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/bg" android:orientation="vertical" > <EditText android:id="@+id/et" android:layout_width="251dp" android:layout_height="wrap_content" android:layout_gravity="center" android:drawableLeft="@drawable/title" android:background="@drawable/shape" android:padding="10px" android:hint="北京" android:singleLine="true" android:textColor="#FFFAFA"/> </LinearLayout>
在drawable中建一个xml文件:shape.xml
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#00ff00ff"/> <corners android:radius="8px"/> <stroke android:color="#32CD32" android:width="2px" /> </shape>
相关文章推荐
- android 中 EditText加入图标 更改边框颜色 设置透明 代码
- EditText---android 中EditText加入图标 更改边框颜色 设置透明 代码 .
- android 中 EditText加入图标 更改边框颜色 设置透明 代码
- android 中 EditText加入图标 更改边框颜色 设置透明 代码
- android 中 EditText加入图标 更改边框颜色 设置透明 代码
- android 中 EditText加入图标 更改边框颜色 设置透明 代码
- android 中 EditText加入图标 更改边框颜色 设置透明 代码
- android 中 EditText加入图标 更改边框颜色 设置透明
- android EditText 更改边框颜色,光标颜色
- android 代码设置图标背景色(圆形图标)和图标颜色
- 自定义UISearchBar 适配IOS6和IOS7 修改放大镜图标 修改光标颜色 修改边框颜色 placeholder颜色 设置文本框背景
- 可视化编程 Tips 之"无需代码设置圆角" "简单处理让我们可以无需代码设置边框颜色"
- Android 代码中设置字体颜色
- Android两行代码修改给系统状态栏设置透明效果
- 使用Drawble文件实现圆角,填充颜色,边框等属性的设置(Android)
- Android 使用代码设置selector 的图片或文字颜色
- android 代码设置progressBar 颜色
- Android 代码设置 控件背景颜色
- (转)#小美化#Android给TextView设置透明背景、圆角边框
- Android给TextView设置透明背景、圆角边框