app直播原始碼,平臺登入頁面實現和修改密碼頁面實現

zhibo系統開發發表於2022-06-10

app直播原始碼,平臺登入頁面實現和修改密碼頁面實現

頁面設計

1、 登入頁面activity_login.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns: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="
    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直播原始碼,平臺登入頁面實現和修改密碼頁面實現,更多內容歡迎關注之後的文章


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69978258/viewspace-2899873/,如需轉載,請註明出處,否則將追究法律責任。

相關文章