mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Made LoginView Scrollable
This commit is contained in:
parent
599be3c1bd
commit
d7d1de9504
1 changed files with 54 additions and 50 deletions
|
|
@ -1,57 +1,61 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_height="match_parent"
|
>
|
||||||
android:gravity="center"
|
|
||||||
android:orientation="vertical" >
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/commonsLogo"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:src="@drawable/commons_logo_large" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/loginSubtitle"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
android:text="@string/login_subtitle"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_margin="16dip"
|
android:gravity="center"
|
||||||
android:gravity="center"
|
android:orientation="vertical" >
|
||||||
android:orientation="vertical" >
|
|
||||||
|
|
||||||
<EditText
|
<ImageView
|
||||||
android:id="@+id/loginUsername"
|
android:id="@+id/commonsLogo"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/username"
|
android:layout_marginTop="16dp"
|
||||||
android:inputType="textNoSuggestions"
|
android:src="@drawable/commons_logo_large" />
|
||||||
>
|
|
||||||
|
|
||||||
<requestFocus />
|
<TextView
|
||||||
</EditText>
|
android:id="@+id/loginSubtitle"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:text="@string/login_subtitle"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
|
||||||
<EditText
|
<LinearLayout
|
||||||
android:id="@+id/loginPassword"
|
android:layout_width="fill_parent"
|
||||||
android:layout_width="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_margin="16dip"
|
||||||
android:hint="@string/password"
|
android:gravity="center"
|
||||||
android:inputType="textPassword" />
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<Button
|
<EditText
|
||||||
android:id="@+id/loginButton"
|
android:id="@+id/loginUsername"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/login" />
|
android:hint="@string/username"
|
||||||
|
android:inputType="textNoSuggestions"
|
||||||
|
>
|
||||||
|
|
||||||
|
<requestFocus />
|
||||||
|
</EditText>
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/loginPassword"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:hint="@string/password"
|
||||||
|
android:inputType="textPassword" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/loginButton"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/login" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
</LinearLayout>
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue