ht_dialog_binding_phone.xml 5.2 KB
<?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:orientation="vertical">

   <RelativeLayout
      android:layout_width="match_parent"
      style="@style/ht_title_style"
      android:layout_height="wrap_content">

      <TextView
         style="@style/ht_title_text_style"
         android:layout_width="match_parent"
         android:layout_height="40dp"
         android:text="绑定手机" />

      <ImageView
         android:id="@+id/ht_close_img"
         style="@style/ht_close_style"
         android:layout_width="18dp"
         android:layout_height="18dp" />
   </RelativeLayout>

   <ScrollView
      android:layout_width="match_parent"
      android:scrollbars="none"
      style="@style/ht_content_style"
      android:layout_height="match_parent">

      <LinearLayout
         android:layout_width="match_parent"
         android:orientation="vertical"
         android:paddingRight="10dp"
         android:paddingLeft="10dp"
         android:layout_height="match_parent">

         <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:focusable="true"
            android:layout_marginTop="15dp"
            android:background="@drawable/ht_edittext_bg"
            android:focusableInTouchMode="true"
            android:gravity="center"
            android:orientation="horizontal">

            <ImageView
               android:layout_width="20dp"
               android:layout_margin="5dp"
               android:layout_height="20dp"
               android:visibility="gone"
               android:background="@drawable/ht_ic_bindphone_phone" />

            <View
               android:layout_width="0.5dp"
               android:background="@drawable/ht_divider"
               android:layout_gravity="center"
               android:visibility="gone"
               android:layout_height="20dp" />

            <EditText
               android:id="@+id/ht_binding_phone_number_et"
               style="@style/ht_edittext_style"
               android:layout_width="0dp"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:background="@null"
               android:hint="请输入手机号码"
               android:inputType="number"
               android:maxLength="11" />
         </LinearLayout>

         <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:layout_marginTop="15dp"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <LinearLayout
               android:layout_width="wrap_content"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:background="@drawable/ht_edittext_bg"
               android:gravity="center"
               android:orientation="horizontal">

               <ImageView
                  android:layout_width="20dp"
                  android:layout_margin="5dp"
                  android:layout_height="20dp"
                  android:visibility="gone"
                  android:background="@drawable/ht_ic_bindphone_code" />

               <View
                  android:layout_width="0.5dp"
                  android:background="@drawable/ht_divider"
                  android:layout_gravity="center"
                  android:visibility="gone"
                  android:layout_height="20dp" />

               <EditText
                  android:id="@+id/ht_binding_phone_code_et"
                  android:layout_width="0dp"
                  style="@style/ht_edittext_style"
                  android:layout_height="match_parent"
                  android:layout_weight="1"
                  android:background="@null"
                  android:hint="请输入验证码"
                  android:inputType="number" />

               <View
                  android:layout_width="0.5dp"
                  android:background="@color/ht_main_color"
                  android:layout_height="30dp"
                  android:visibility="gone"
                  android:layout_gravity="center" />


            </LinearLayout>

            <com.ht.sdk.view.CountDownTimerButton
               android:id="@+id/ht_binding_get_code_btn"
               style="@style/ht_button_style"
               android:layout_width="88dp"
               android:layout_height="match_parent"
               android:layout_marginLeft="10dp"
               android:paddingLeft="10dp"
               android:paddingRight="10dp"
               android:text="获取验证码"
               android:textSize="12sp" />
         </LinearLayout>

         <Button
            android:id="@+id/ht_binding_confirm_btn"
            android:layout_width="match_parent"
            style="@style/ht_button_style"
            android:layout_height="40dp"
            android:layout_marginTop="15dp"
            android:layout_marginBottom="20dp"
            android:text="立即绑定手机" />
      </LinearLayout>
   </ScrollView>
</LinearLayout>