ht_center_change_view.xml 4.0 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
   android:layout_height="wrap_content">

   <LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_marginLeft="10dp"
      android:layout_marginRight="10dp"
      android:orientation="vertical">

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

         <ImageView
            android:layout_width="15dp"
            android:layout_height="15dp"
            android:layout_margin="5dp"
            android:src="@drawable/ht_ic_old_psd" />


         <EditText
            android:id="@+id/ht_change_oldpwd_et"
            android:layout_width="0dp"
            style="@style/ht_edittext_style"
            android:background="@null"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_./\|+-@#$%^*"
            android:hint="请输入旧密码"
            android:inputType="textPassword"
            android:nextFocusDown="@+id/ht_changepwd_newpwd_et" />
      </LinearLayout>

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

         <ImageView
            android:layout_width="15dp"
            android:layout_height="15dp"
            android:layout_margin="5dp"
            android:src="@drawable/ht_ic_password_new" />


         <EditText
            android:id="@+id/ht_changepwd_newpwd_et"
            style="@style/ht_edittext_style"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_./\|+-@#$%^*"
            android:background="@null"
            android:hint="请输入新密码"
            android:inputType="textPassword"
            android:nextFocusDown="@+id/ht_changepwd_again_et" />
      </LinearLayout>


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

         <ImageView
            android:layout_width="15dp"
            android:layout_height="15dp"
            android:layout_margin="5dp"
            android:src="@drawable/ht_ic_password_new_again" />


         <EditText
            android:id="@+id/ht_changepwd_again_et"
            style="@style/ht_edittext_style"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_./\|+-@#$%^*"
            android:hint="请确认新密码"
            android:background="@null"
            android:inputType="textPassword" />
      </LinearLayout>

      <Button
         android:id="@+id/ht_changepwd_confirm"
         style="@style/ht_button_style"
         android:layout_width="match_parent"
         android:layout_height="40dp"
         android:layout_marginBottom="10dp"
         android:layout_marginTop="10dp"
         android:text="确认修改" />
   </LinearLayout>
</FrameLayout>