短信验证功能添加
This commit is contained in:
parent
45531e5e4e
commit
bba6d24298
File diff suppressed because it is too large
Load Diff
|
|
@ -1,219 +1,240 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/rl_bg"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:id="@+id/rl_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true">
|
||||
|
||||
<include
|
||||
android:id="@+id/in_daohang"
|
||||
layout="@layout/title_layout_haveimg" />
|
||||
<ImageView
|
||||
android:layout_below="@+id/in_daohang"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/login_background"
|
||||
android:scaleType="fitXY"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/login_padding_bottom"
|
||||
android:layout_marginLeft="@dimen/login_padding_left"
|
||||
android:layout_marginRight="15dp"
|
||||
android:orientation="vertical"
|
||||
android:layout_below="@id/in_daohang"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/F7F7F7"
|
||||
android:gravity="center_horizontal"
|
||||
>
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_country"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:background="@drawable/login_edtext_shape_f2"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/tv_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="国家/地区"
|
||||
android:textColor="@color/galy_my"
|
||||
android:layout_centerVertical="true"
|
||||
android:textSize="18sp"
|
||||
android:layout_marginLeft="11dp"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/tv_country"
|
||||
android:layout_toRightOf="@+id/tv_tv"
|
||||
android:gravity="right"
|
||||
android:ellipsize="start"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="11dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="中国 +86"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:layout_centerVertical="true"
|
||||
android:textSize="18sp"
|
||||
android:singleLine="true"
|
||||
android:layout_marginLeft="11dp"
|
||||
/>
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/in_daohang"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/login_background" />
|
||||
|
||||
</RelativeLayout>
|
||||
<com.ifish.view.ClearEditText
|
||||
android:paddingRight="10dp"
|
||||
android:id="@+id/et_phone"
|
||||
android:layout_below="@id/in_daohang"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:inputType="number"
|
||||
android:maxLength="11"
|
||||
android:layout_marginTop="@dimen/login_bg_width"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:background="@drawable/login_edtext_shape_f2"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:textColorHint="@color/galy_my"
|
||||
android:paddingLeft="10dp"
|
||||
android:hint="请输入手机号"
|
||||
android:singleLine="true"
|
||||
/>
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_a1"
|
||||
android:layout_below="@id/et_phone"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="@dimen/login_bg_width"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
>
|
||||
<TextView
|
||||
android:id="@+id/tv_code"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:padding="10dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/voice_code"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
android:background="@drawable/login_button_noright_select"
|
||||
/>
|
||||
<EditText
|
||||
android:id="@+id/et_messge"
|
||||
android:layout_toLeftOf="@id/tv_code"
|
||||
android:maxLength="4"
|
||||
android:inputType="number"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/in_daohang"
|
||||
android:layout_marginLeft="@dimen/login_padding_left"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginTop="@dimen/login_padding_bottom"
|
||||
android:background="@color/F7F7F7"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_country"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:textColorHint="@color/galy_my"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:layout_marginTop="30dp"
|
||||
android:background="@drawable/login_edtext_shape_f2">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="11dp"
|
||||
android:text="国家/地区"
|
||||
android:textColor="@color/galy_my"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_country"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="11dp"
|
||||
android:layout_marginRight="11dp"
|
||||
android:layout_toRightOf="@+id/tv_tv"
|
||||
android:ellipsize="start"
|
||||
android:gravity="right"
|
||||
android:singleLine="true"
|
||||
android:text="中国 +86"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<com.ifish.view.ClearEditText
|
||||
android:id="@+id/et_phone"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_below="@id/in_daohang"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:layout_marginTop="@dimen/login_bg_width"
|
||||
android:background="@drawable/login_edtext_shape_f2"
|
||||
android:hint="请输入手机号"
|
||||
android:inputType="number"
|
||||
android:maxLength="11"
|
||||
android:paddingLeft="10dp"
|
||||
android:background="@drawable/login_edtext_noright_shape_f2"
|
||||
android:hint="请输入验证码"
|
||||
android:singleLine="true"
|
||||
/>
|
||||
android:paddingRight="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:textColorHint="@color/galy_my" />
|
||||
|
||||
</RelativeLayout>
|
||||
<com.ifish.view.ClearEditText
|
||||
android:paddingRight="10dp"
|
||||
android:id="@+id/et_psw"
|
||||
android:layout_below="@id/rl_a1"
|
||||
android:layout_marginTop="@dimen/login_bg_width"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:background="@drawable/login_edtext_shape_f2"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="16"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:textColorHint="@color/galy_my"
|
||||
android:paddingLeft="10dp"
|
||||
android:hint="请设置您的密码"
|
||||
android:singleLine="true"
|
||||
/>
|
||||
<Button
|
||||
android:id="@+id/bt_submit"
|
||||
android:layout_below="@id/et_psw"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:textColor="@color/white"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:background="@drawable/login_button_select"
|
||||
android:text="注册" />
|
||||
<RelativeLayout
|
||||
android:layout_below="@id/bt_submit"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
>
|
||||
<CheckBox
|
||||
android:id="@+id/ct_check"
|
||||
android:checked="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/CustomCheckboxTheme"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/tv_check"
|
||||
android:layout_toRightOf="@id/ct_check"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="我已同意爱鱼奇使用协议"
|
||||
android:textColor="@color/main_tab_grey"
|
||||
android:textSize="13dp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_website"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:textColor="@color/main_tab_grey"
|
||||
android:text="@string/app_website"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="@dimen/login_padding_bottom"
|
||||
android:textSize="14sp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/tv_appname"
|
||||
android:layout_above="@+id/tv_website"
|
||||
android:textColor="@color/shoplist_text_galy"
|
||||
android:text="@string/app_name"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:textSize="24sp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
<LinearLayout
|
||||
android:id="@+id/rl_a1"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_below="@id/et_phone"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:layout_marginTop="@dimen/login_bg_width"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_test"
|
||||
android:layout_above="@+id/tv_appname"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="46dp"
|
||||
android:src="@drawable/app_icon_alpha"
|
||||
android:scaleType="fitXY"
|
||||
/>
|
||||
<EditText
|
||||
android:id="@+id/et_messge"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/login_edtext_noright_shape_f2"
|
||||
android:hint="请输入验证码"
|
||||
android:inputType="number"
|
||||
android:maxLength="4"
|
||||
android:paddingLeft="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:textColorHint="@color/galy_my" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_code"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@drawable/login_button_noright_select"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:padding="10dp"
|
||||
android:text="@string/voice_code"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_msgcode"
|
||||
android:layout_width="90dp"
|
||||
android:layout_height="fill_parent"
|
||||
android:background="@drawable/login_button_noright_select"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:padding="10dp"
|
||||
android:text="@string/sms_code"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.ifish.view.ClearEditText
|
||||
android:id="@+id/et_psw"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_below="@id/rl_a1"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:layout_marginTop="@dimen/login_bg_width"
|
||||
android:background="@drawable/login_edtext_shape_f2"
|
||||
android:hint="请设置您的密码"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="16"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/text_black_my"
|
||||
android:textColorHint="@color/galy_my" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/bt_submit"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_below="@id/et_psw"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:layout_marginTop="30dp"
|
||||
android:background="@drawable/login_button_select"
|
||||
android:text="注册"
|
||||
android:textColor="@color/white" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/bt_submit"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:layout_marginLeft="@dimen/new_login_bg_width"
|
||||
android:layout_marginRight="@dimen/new_login_bg_width"
|
||||
android:layout_marginTop="12dp">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/ct_check"
|
||||
style="@style/CustomCheckboxTheme"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:checked="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_check"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_toRightOf="@id/ct_check"
|
||||
android:text="我已同意爱鱼奇使用协议"
|
||||
android:textColor="@color/main_tab_grey"
|
||||
android:textSize="13dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_changesmscode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="短信验证码"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="13dp" />
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_website"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="@dimen/login_padding_bottom"
|
||||
android:text="@string/app_website"
|
||||
android:textColor="@color/main_tab_grey"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_appname"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/tv_website"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:text="@string/app_name"
|
||||
android:textColor="@color/shoplist_text_galy"
|
||||
android:textSize="24sp" />
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_test"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="46dp"
|
||||
android:layout_above="@+id/tv_appname"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/app_icon_alpha" />
|
||||
</RelativeLayout>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<string name="listview_nonetwork">ヾ(≧O≦)〃\n啊哦 好像没有网络了\n下拉刷新试试吧!</string>
|
||||
<string name="app_website">www.iFish7.com</string>
|
||||
<string name="voice_code">语音验证码</string>
|
||||
<string name="sms_code">短信验证码</string>
|
||||
<string name="iconName">按钮名称</string>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue