android注册/登录圆角界面设计

本文详细介绍了如何设计Android应用中的注册/登录界面,采用白色背景和黑色圆形边框,通过设置背景图片或自定义shape实现圆角效果。内容包括界面布局代码、edit_bg.xml中的shape元素配置,以及相关文字提示和图标资源的引用。
摘要由CSDN通过智能技术生成

摘要:对android注册/登录界面的设计,背景为白色,带黑色圆形边框。其中边框的实现可以是使用背景图片,即

android:background="@drawable/CornerPicture";另外一种方法就新建edit_bg.xml再重写shape中的corners

android:radius="10dp" />,说明圆角半径为10dp,然后在layout中使用android:background="@drawable/edit_bg"即可;同时本文

提供了android开发图标下载网址,仅供参考。

1.注册/登录界面整体代码如下:

<LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="184dp"
            android:layout_marginLeft="20dp"
            android:layout_marginRight="20dp"
            android:layout_marginTop="30dp"
            android:background="@drawable/edit_bg"
            android:orientation="vertical" >

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="40dp"
                android:layout_marginLeft="5dp"
                android:layout_marginTop="10dp"
                android:orientation="horizontal" >

                <ImageView
                    android:layout_width="40dp"
                    android:layout_height="40dp"
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值