Professional Documents
Culture Documents
Untitled 2
Untitled 2
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:background="@color/grey_background"
tools:context=".LoginActivity">
<!--android:background="@drawable/page1"-->
<!-- Login progress -->
<ProgressBar
android:id="@+id/login_progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:visibility="gone" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end">
<ImageView
android:id="@+id/icon_gps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_marginStart="0dp"
android:layout_alignParentRight="true"
android:src="@drawable/no_gps" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="wrap_content"
android:layout_height="14dp"
android:layout_gravity="center"
android:src="@drawable/infosmart_white"
android:textColor="@android:color/white"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="10dp"
android:layout_gravity="center" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="80dp"
android:layout_gravity="center"
android:src="@drawable/a_go" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="7dp"
android:layout_gravity="center" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="600dp"
android:orientation="horizontal"
android:layout_gravity="center">
<ScrollView
android:id="@+id/login_form"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/login_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_gravity="center|top">
<!--移位 -->
<TextView
android:layout_width="match_parent"
android:layout_height="24dp" />
<!-- input account -->
<ImageView
android:id="@+id/account_view"
android:layout_width="120dp"
android:layout_height="25dp"
android:src="@drawable/email_address"/>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/edittext_rounded_corners_border">
<AutoCompleteTextView
android:id="@+id/account_name"
android:layout_width="match_parent"
android:layout_height="40dp"
android:inputType="text"
android:textSize="20sp"
android:textColor="@color/white"
android:maxLines="1"
android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="8dp" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/edittext_rounded_corners_border">
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="40dp"
android:inputType="text"
android:textSize="20sp"
android:textColor="@color/white"
android:maxLines="1"
android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="120dp"
android:layout_height="50dp"
android:src="@drawable/remember_me"
android:textColor="@color/white" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="50dp"
android:onClick="remember_me"
android:buttonTint="@color/white" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:orientation="horizontal">
<ImageView
android:layout_width="140dp"
android:layout_height="30dp"
android:gravity="right"
android:onClick="forget_password"
android:src="@drawable/forget_password"
android:textColor="@color/white" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height= "65dp"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:onClick="login">
<ImageView
android:layout_width="100dp"
android:layout_height="50dp"
android:layout_gravity="left"
android:src="@drawable/go_start_login"/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:src="@drawable/arrow_to_right"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:onClick="test_foreground">
<ImageView
android:layout_width="100dp"
android:layout_height="50dp"
android:layout_gravity="left"
android:src="@drawable/go_start_login"/>
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentRight="true"
android:src="@drawable/arrow_to_right"/>
</RelativeLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>