app直播源码,平台登录页面实现和修改密码页面实现

app直播源码,平台登录页面实现和修改密码页面实现

页面设计

1、登录页面activity_login.xml

 


<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#0BD1EA"
    android:orientation="vertical">
    <RelativeLayout
        android:id="@+id/rtLytTop"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:layout_margin="30dp"
        >
    </RelativeLayout>
    <RelativeLayout
        android:id="@+id/rtLytMiddle"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_below="@+id/rtLytTop"
        android:layout_marginLeft="30dp"
        android:layout_marginTop="1dp"
        android:layout_marginRight="30dp"
        >
        <EditText
            android:id="@+id/edt_UserName"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:layout_marginLeft="10dp"
            android:background="@drawable/editext_shape"
            android:hint="请输入用户名"
            android:inputType="text">
        </EditText>
    </RelativeLayout>
    <LinearLayout
        android:id="@+id/rtLyMiddle"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_below="@+id/rtLytMiddle"
        android:layout_marginLeft="30dp"
        android:layout_marginTop="20dp"
        android:layout_marginRight="30dp"
        android:orientation="horizontal">
        <EditText
            android:id="@+id/edt_Password"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:layout_marginLeft="10dp"
            android:background="@drawable/editext_shape"
            android:hint="请输入密码"
            android:inputType="textPassword">
        </EditText>
    </LinearLayout>
    <Button
        android:id="@+id/btn_Login"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_below="@+id/rtLyMiddle"
        android:layout_margin="70dp"
        android:text="登录"
        android:background="@drawable/button_shape"
        android:textColor="#ffffff"
        android:textSize="24sp">
    </Button>
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true">
        <Button
            android:id="@+id/btn_Forget"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#0BD1EA"
            android:paddingLeft="10dp"
            android:paddingBottom="10dp"
            android:text="忘记密码?">
        </Button>
        <Button
            android:id="@+id/btn_Register"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:background="#0BD1EA"
            android:paddingRight="10dp"
            android:paddingBottom="10dp"
            android:text="新用户">
        </Button>
    </RelativeLayout>
</RelativeLayout>

2、修改密码界面

 

activity_forget_password.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="#0BD1EA"
    android:orientation="vertical"
    >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        >
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="修改密码"
            android:textSize="30sp"
            android:gravity="center"></TextView>
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <TextView
            android:layout_width="132dp"
            android:layout_height="wrap_content"
            android:text="账            号:"
            android:textSize="24sp"
            android:layout_marginLeft="10dp">
        </TextView>
        <EditText
            android:id="@+id/edt_UserName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="请输入用户名"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp">
        </EditText>
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <TextView
            android:layout_width="132dp"
            android:layout_height="wrap_content"
            android:text="手    机    号:"
            android:textSize="24sp"
            android:layout_marginLeft="10dp">
        </TextView>
        <EditText
            android:id="@+id/edt_Phone"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="请输入注册的手机号"
            android:inputType="number"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp">
        </EditText>
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <TextView
            android:layout_width="132dp"
            android:layout_height="wrap_content"
            android:text="新    密    码:"
            android:textSize="24sp"
            android:layout_marginLeft="10dp">
        </TextView>
        <EditText
            android:id="@+id/edt_NewPassWord"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="请输入新密码"
            android:inputType="textPassword"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp">
        </EditText>
    </LinearLayout>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <TextView
            android:layout_width="132dp"
            android:layout_height="wrap_content"
            android:text="确认新密码:"
            android:textSize="24sp"
            android:layout_marginLeft="10dp">
        </TextView>
        <EditText
            android:id="@+id/edt_NewPassWord2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="请再次输入新密码"
            android:inputType="textPassword"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp">
        </EditText>
    </LinearLayout>
    <Button
        android:id="@+id/btn_Confirm"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_margin="70dp"
        android:text="确认修改"
        android:background="@drawable/button_shape"
        android:textColor="#ffffff"
        android:textSize="24sp">
    </Button>
</LinearLayout>

 

以上就是 app直播源码,平台登录页面实现和修改密码页面实现,更多内容欢迎关注之后的文章

 

posted @ 2022-06-10 14:19  云豹科技-苏凌霄  阅读(182)  评论(0)    收藏  举报