android实现登录注册界面

  1. 创建一个androidstudio工程
  • drawable中添加

main_left:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
        <stroke
            android:width="1dp"
            android:color="@color/orange">

        </stroke>
    <corners
        android:bottomLeftRadius="20dp"
        android:topLeftRadius="20dp">

    </corners>
</shape>

main_right:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
        <stroke
            android:width="1dp"
            android:color="@color/orange">

        </stroke>
    <corners
        android:bottomRightRadius="20dp"
        android:topRightRadius="20dp">

    </corners>
</shape>
  • activity_main中完成基本布局代码

    ``





posted @ 2022-10-21 21:46  Mr_LL  阅读(1539)  评论(0)    收藏  举报