android_7 editView

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;
    }
}
 


 

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

 

 

 

  • 大小: 23.7 KB
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值