Initial commit
This commit is contained in:
134
resources/res/layout/activity_login.xml
Normal file
134
resources/res/layout/activity_login.xml
Normal file
@@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/rootView"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<com.ubt.jimu.widgets.NavigationBarView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:nbv_mode="left"
|
||||
app:nbv_title="@string/login"/>
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<RelativeLayout
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="6dp"
|
||||
android:layout_width="@dimen/theme_input_width"
|
||||
android:layout_height="wrap_content">
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_tips_input_error"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/theme_14dp">
|
||||
<TextView
|
||||
android:textSize="@dimen/theme_input_txt"
|
||||
android:textColor="#ff0000"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/theme_input_height"
|
||||
android:layout_marginLeft="@dimen/theme_input_margin_left"
|
||||
android:text="@string/tips_account_error"
|
||||
android:layout_centerVertical="true"/>
|
||||
</RelativeLayout>
|
||||
<RelativeLayout
|
||||
android:id="@+id/countryCodeParent"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/theme_14dp">
|
||||
<TextView
|
||||
android:textSize="@dimen/theme_input_txt"
|
||||
android:textColor="@color/txt_00A9FF"
|
||||
android:textColorHint="@color/txt_00A9FF"
|
||||
android:gravity="center_vertical"
|
||||
android:id="@+id/countryCodeTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/theme_input_height"
|
||||
android:hint="@string/location_tips_text"
|
||||
android:layout_centerVertical="true"/>
|
||||
<ImageView
|
||||
android:id="@+id/rightArrowImageView"
|
||||
android:layout_width="@dimen/dp15"
|
||||
android:layout_height="@dimen/dp15"
|
||||
android:layout_marginLeft="@dimen/dp20"
|
||||
android:src="@drawable/arrow_blue_right"
|
||||
android:layout_toRightOf="@+id/countryCodeTextView"
|
||||
android:layout_centerVertical="true"/>
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/accountParent"
|
||||
style="@style/theme_input_view_style">
|
||||
<ImageView
|
||||
android:background="@drawable/ic_account"
|
||||
android:layout_width="@dimen/theme_input_icon_size"
|
||||
android:layout_height="@dimen/theme_input_icon_size"/>
|
||||
<com.ubt.jimu.widgets.ClearEditText
|
||||
android:id="@+id/phoneEditText"
|
||||
android:layout_marginLeft="@dimen/theme_input_margin_left"
|
||||
android:hint="@string/hint_account"
|
||||
android:maxEms="30"
|
||||
android:inputType="textEmailAddress"
|
||||
style="@style/theme_edit_text_style"/>
|
||||
</LinearLayout>
|
||||
<RelativeLayout
|
||||
android:id="@+id/passwordParent"
|
||||
style="@style/theme_input_view_style">
|
||||
<ImageView
|
||||
android:id="@+id/img_icon"
|
||||
android:background="@drawable/ic_password"
|
||||
android:layout_width="@dimen/theme_input_icon_size"
|
||||
android:layout_height="@dimen/theme_input_icon_size"
|
||||
android:layout_centerVertical="true"/>
|
||||
<TextView
|
||||
android:textSize="@dimen/theme_11sp"
|
||||
android:textColor="@color/theme_action_txt"
|
||||
android:gravity="center"
|
||||
android:id="@+id/findPwdTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/theme_input_height"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:text="@string/find_password"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"/>
|
||||
<View
|
||||
android:background="@color/theme_divider_line"
|
||||
android:layout_width="@dimen/theme_input_divider_width"
|
||||
android:layout_height="@dimen/theme_input_divider_height"
|
||||
android:layout_toLeftOf="@+id/findPwdTextView"
|
||||
android:layout_centerVertical="true"/>
|
||||
<com.ubt.jimu.widgets.ClearEditText
|
||||
android:id="@+id/passwordEditText"
|
||||
android:layout_marginLeft="@dimen/theme_input_margin_left"
|
||||
android:hint="@string/hint_password"
|
||||
android:layout_centerVertical="true"
|
||||
android:inputType="textPassword"
|
||||
android:layout_toStartOf="@+id/findPwdTextView"
|
||||
android:layout_toEndOf="@+id/img_icon"
|
||||
style="@style/theme_edit_text_style"/>
|
||||
</RelativeLayout>
|
||||
<com.ubtech.view.widget.UButton
|
||||
android:id="@+id/loginLayout"
|
||||
android:layout_marginTop="18dp"
|
||||
android:text="@string/login"
|
||||
style="@style/btn_blue_large_style"/>
|
||||
<com.ubt.jimu.widgets.ThirdLoginView
|
||||
android:gravity="center_vertical"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/thirdLogin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13dp"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
Reference in New Issue
Block a user