main.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:orientation="vertical" >    <TextView        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="@string/hello" />    <EditText         android:id="@+id/username1"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:drawableLeft="@drawable/logo"        android:hint="@string/hite_username"        />    <EditText         android:id="@+id/username2"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:drawableLeft="@drawable/logo"        android:hint="@string/hite_username"        android:background="@drawable/shape"        />     <EditText         android:id="@+id/username3"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:drawableLeft="@drawable/logo"        android:hint="@string/hite_username"        android:background="@drawable/shape2"        /></LinearLayout>

shape.xml:

<?xml version="1.0" encoding="UTF-8" ?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle"    >    <!-- 填充的颜色 -->    <solid android:color="#FFFFFf"/>    <!-- 设置矩形的四个角为弧形 -->    <corners android:radius="7dip"/></shape>

shape2.xml

<?xml version="1.0" encoding="UTF-8" ?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle"    >    <!-- 填充的颜色 -->    <solid android:color="#FFFFFf"/>    <!-- 设置矩形的四个角为弧形 -->        <corners android:topLeftRadius="7dip" />    <corners android:topRightRadius="7dip" /></shape>
/* AUTO-GENERATED FILE.  DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found.  It * should not be modified by hand. */package com.mhm.editview.activity;public final class R {    public static final class attr {    }    public static final class drawable {        public static final int ic_launcher=0x7f020000;        public static final int logo=0x7f020001;        public static final int shape=0x7f020002;        public static final int shape2=0x7f020003;    }    public static final class id {        public static final int username1=0x7f050000;        public static final int username2=0x7f050001;        public static final int username3=0x7f050002;    }    public static final class layout {        public static final int main=0x7f030000;    }    public static final class string {        public static final int app_name=0x7f040001;        public static final int hello=0x7f040000;        public static final int hite_username=0x7f040002;    }}


从这里看出,左上角的弧线没有了,说明被最后一个冲突了。

更多相关文章

  1. android.graphics.Paint类详解
  2. Android布局颜色对应值
  3. xml中自定义图形
  4. 样式表以及Color.xml文件『Android系列六』
  5. Android中的Shape的使用
  6. android 实现滤镜效果
  7. Android(安卓)Studio如何去掉丑陋的标题栏//values文件夹结构的
  8. Android中EditText光标在4.0中的bug及解决方法
  9. Android修改圆形进度条ProgressBar的默认颜色

随机推荐

  1. Android(安卓)native 内存泄露检测
  2. Android进程与线程的概念
  3. android 控件的隐藏和显示
  4. Android 8.1 关机充电动画(一)模式选择
  5. Android使用Handler实时更新UI
  6. 浅谈android的selector 背景选择器
  7. x86平台编译Android
  8. Android(安卓)Call Log and SMS Delete
  9. android实现富文本
  10. Android中的数据绑定框架DataBinding(对