效果图

自己画这个登录这个按钮,和自己画手机注册这个框框

自己画一个按钮

<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" > <corners android:radius="50dp" />    <solid android:color="#FF1493" />shape>

自己画一个框框

<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" >         <solid android:color="@android:color/transparent" />                <corners android:radius="1dip"  />            <stroke        android:width="2px"        android:color="#ccC71485" />shape>

xml页面

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:background="@android:color/white"    android:orientation="vertical" >    <LinearLayout        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:background="@drawable/top1" >    LinearLayout>    <TableLayout        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="vertical" >        <TableRow>            <TextView android:text="账号:" />            <EditText                android:layout_weight="1"                android:background="@null"                android:hint="手机号/邮箱"                android:text="" />        TableRow>        <TableRow>            <View                android:layout_width="match_parent"                android:layout_height="2dp"                android:layout_margin="5dp"                android:layout_weight="1"                android:background="@android:color/darker_gray" />        TableRow>        <TableRow>            <TextView android:text="密码:" />            <EditText                android:layout_weight="1"                android:background="@null"                android:hint="登录密码"                android:text="" />        TableRow>        <TableRow>            <Button                android:layout_width="wrap_content"                android:layout_height="40dp"                android:layout_weight="1"                android:background="@drawable/shape"                android:text="登录"                android:textColor="@android:color/white" />        TableRow>        <RelativeLayout            android:layout_width="match_parent"            android:layout_height="wrap_content" >            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:layout_alignParentRight="true"                android:text="忘记密码?"                android:textSize="10sp" />        RelativeLayout> TableLayout>        <LinearLayout            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:layout_gravity="center"            android:orientation="horizontal" >            <TextView                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:text="还没有账号?" />            <Button                android:layout_width="wrap_content"                android:layout_height="30dp"                android:background="@drawable/shape1"                android:text="手机注册"                android:textColor="#FF1493"                android:textStyle="bold" />        LinearLayout>LinearLayout>

更多相关文章

  1. Android(安卓)将软键盘的回车按钮改变成搜索按钮
  2. android 点击webView中的按钮修改布局问题
  3. Android4.0 Design之UI设计易犯的错误2
  4. Android开发板之串口开发
  5. Android中使用webview加载网页上的按钮点击失效
  6. Android和js、H5进行交互数据(面试必问)
  7. Android:实现TabWidget选项卡按钮在屏幕下方
  8. Android用户界面设计:基本按钮
  9. 圆形button

随机推荐

  1. Android(安卓)自定义FloatView实现悬浮视
  2. 一览新的 Android(安卓)Gradle 构建工具:
  3. android获取view宽高的几种方法
  4. Android全局异常捕获
  5. Android系统添加Feature方法
  6. android获取SD卡的总容量,已使用的容量,剩
  7. Android(安卓)中Touch 事件的分发和消费
  8. android LiveFolder(活动文件夹) 完全解
  9. android2.2资源文件详解2--tween动画
  10. 2017-06-10-Activity启动模式的区别