194 lines
7.6 KiB
XML
194 lines
7.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="model"
|
|
type="com.xyz.babelive.viewModel.home.MainViewModel" />
|
|
</data>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/default_bg"
|
|
android:orientation="vertical">
|
|
|
|
<com.xyz.babelive.ui.view.StatusLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/main_color" />
|
|
<include layout="@layout/layout_action_bar"
|
|
android:id="@+id/action_v"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/dp10"
|
|
android:background="@drawable/card_bord_org_bg1"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dp10">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/current_mobile_phone"
|
|
android:layout_marginTop="@dimen/dp5"
|
|
android:id="@+id/user_name_tips_tv"
|
|
android:textColor="@color/body_txt_color"
|
|
android:textSize="16sp"
|
|
/>
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp52"
|
|
android:layout_marginTop="@dimen/dp8"
|
|
android:hint="@string/rule_phone"
|
|
android:paddingStart="@dimen/dp10"
|
|
android:paddingEnd="@dimen/dp10"
|
|
android:gravity="center_vertical"
|
|
android:textSize="@dimen/sp16"
|
|
android:maxLength="20"
|
|
android:lines="1"
|
|
android:id="@+id/user_et"
|
|
android:textColor="@color/body_txt_color"
|
|
android:textColorHint="@color/des_txt_color"
|
|
android:background="@drawable/card_bantou_bg"
|
|
/>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp20"
|
|
android:text="@string/new_phone_number"
|
|
android:textColor="@color/body_txt_color"
|
|
android:textSize="16sp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/phone_ly"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp52"
|
|
android:layout_marginTop="@dimen/dp8"
|
|
android:background="@drawable/card_bantou_bg"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/area_ly"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:id="@+id/area_iv"
|
|
android:layout_width="@dimen/dp30"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp10"
|
|
android:layout_gravity="center_vertical"
|
|
android:src="@mipmap/yuenan"/>
|
|
<TextView
|
|
android:layout_width="60dp"
|
|
android:layout_height="match_parent"
|
|
android:textSize="@dimen/sp16"
|
|
android:textColor="@color/body_txt_color"
|
|
android:gravity="center"
|
|
android:id="@+id/area_tv"
|
|
android:text="+60"
|
|
android:drawableEnd="@mipmap/xiala_img"/>
|
|
</LinearLayout>
|
|
|
|
|
|
<EditText
|
|
android:id="@+id/phone_et"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp52"
|
|
android:background="@null"
|
|
android:hint="@string/rule_phone"
|
|
android:inputType="phone"
|
|
android:lines="1"
|
|
android:maxLength="20"
|
|
android:paddingStart="@dimen/dp10"
|
|
android:paddingEnd="@dimen/dp10"
|
|
android:textColor="@color/body_txt_color"
|
|
android:textColorHint="@color/des_txt_color"
|
|
android:textSize="@dimen/sp16" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/code_tops_tv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp20"
|
|
android:text="@string/code"
|
|
android:textColor="@color/body_txt_color"
|
|
android:textSize="16sp"
|
|
android:visibility="gone" />
|
|
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp20"
|
|
android:text="@string/phone_code"
|
|
android:textColor="@color/body_txt_color"
|
|
android:textSize="16sp" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/phone_code_ry"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp52"
|
|
android:layout_marginTop="@dimen/dp8"
|
|
android:layout_marginBottom="@dimen/dp5"
|
|
android:background="@drawable/card_bantou_bg">
|
|
|
|
<EditText
|
|
android:id="@+id/phone_code_et"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp52"
|
|
android:background="@null"
|
|
android:hint="@string/rule_phone_code"
|
|
android:inputType="number"
|
|
android:lines="1"
|
|
android:maxLength="6"
|
|
android:paddingStart="@dimen/dp10"
|
|
android:paddingEnd="@dimen/dp10"
|
|
android:textColor="@color/body_txt_color"
|
|
android:textColorHint="@color/des_txt_color"
|
|
android:textSize="@dimen/sp16" />
|
|
|
|
<TextView
|
|
android:id="@+id/get_sms_tv"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="@dimen/dp10"
|
|
android:text="@string/get_phone_code_txt"
|
|
android:textColor="@color/text_true_color"
|
|
android:textSize="16sp" />
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/action_bt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp52"
|
|
android:layout_marginStart="@dimen/dp10"
|
|
android:layout_marginTop="@dimen/dp30"
|
|
android:layout_marginEnd="@dimen/dp10"
|
|
android:background="@drawable/button_ture_bg"
|
|
android:paddingStart="@dimen/dp10"
|
|
android:paddingEnd="@dimen/dp10"
|
|
android:text="@string/change_phone"
|
|
android:textColor="@color/white"
|
|
android:textColorHint="@color/des_txt_color"
|
|
android:textSize="@dimen/sp16" />
|
|
|
|
|
|
</LinearLayout>
|
|
</layout>
|