摘要:对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"