首页 > 其他 > 详细

Edittext的style设置

时间:2016-08-28 23:43:29      阅读:289      评论:0      收藏:0      [点我收藏+]

首先是在drawable中设置一个有弧度的长方形样式

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#ffffff"></solid>
    <corners
        android:bottomLeftRadius="15dp"
        android:bottomRightRadius="15dp"
        android:topLeftRadius="15dp"
        android:topRightRadius="15dp"></corners>
</shape>

 将background设置为以上的地址,drawableleft是设置左边有一个图片,有人放一个ImageView,我觉得无所谓啦。

    <EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@+id/text"
        android:background="@drawable/rounded_edittext"
        android:drawableLeft="@mipmap/icon48" />

 

Edittext的style设置

原文:http://www.cnblogs.com/lyxin/p/5816356.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!