diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-04-22 00:17:08 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-04-22 00:17:08 +0200 |
commit | 195b745efc0747e930a639d2c89d4c3a79e0a3c2 (patch) | |
tree | 8227dc9a18cff808ab1b72b0f33d1b926bbbce4b /src/main/res | |
parent | 1a073ca45455dcf46bb4d8bcaa962030a65c435a (diff) |
put welcome screen in scrollview
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/layout/welcome.xml | 129 |
1 files changed, 67 insertions, 62 deletions
diff --git a/src/main/res/layout/welcome.xml b/src/main/res/layout/welcome.xml index 52ebefdd2..25f7c46f0 100644 --- a/src/main/res/layout/welcome.xml +++ b/src/main/res/layout/welcome.xml @@ -1,69 +1,74 @@ <?xml version="1.0" encoding="utf-8"?> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" -android:background="@color/grey50"> - - <LinearLayout - android:id="@+id/linearLayout" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentBottom="true" - android:layout_alignParentLeft="true" - android:layout_alignParentStart="true" - android:orientation="vertical" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:paddingBottom="8dp" - android:minHeight="256dp"> - <Space +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="0dp" - android:layout_weight="1"/> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/welcome_header" - android:textColor="@color/black87" - android:textSize="?attr/TextSizeHeadline" - android:textStyle="bold"/> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:text="@string/welcome_text" - android:textColor="@color/black87" - android:textSize="?attr/TextSizeBody"/> - <Button - android:id="@+id/create_account" - style="?android:attr/borderlessButtonStyle" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="right" - android:text="@string/create_account" - android:textColor="@color/accent"/> - <Button - android:id="@+id/use_own_provider" - style="?android:attr/borderlessButtonStyle" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="right" - android:text="@string/use_own_provider" - android:textColor="@color/black54"/> - </LinearLayout> + android:layout_height="match_parent" + android:fillViewport="true"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_above="@+id/linearLayout" - android:layout_alignParentLeft="true" - android:layout_alignParentStart="true" - android:layout_alignParentTop="true"> - <ImageView - android:padding="8dp" - android:layout_width="wrap_content" + android:background="@color/grey50"> + + <LinearLayout + android:id="@+id/linearLayout" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_centerHorizontal="true" - android:layout_centerVertical="true" - android:src="@drawable/main_logo"/> + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:minHeight="256dp" + android:orientation="vertical" + android:paddingBottom="8dp" + android:paddingLeft="16dp" + android:paddingRight="16dp"> + <Space + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1"/> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/welcome_header" + android:textColor="@color/black87" + android:textSize="?attr/TextSizeHeadline" + android:textStyle="bold"/> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:text="@string/welcome_text" + android:textColor="@color/black87" + android:textSize="?attr/TextSizeBody"/> + <Button + android:id="@+id/create_account" + style="?android:attr/borderlessButtonStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:text="@string/create_account" + android:textColor="@color/accent"/> + <Button + android:id="@+id/use_own_provider" + style="?android:attr/borderlessButtonStyle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:text="@string/use_own_provider" + android:textColor="@color/black54"/> + </LinearLayout> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_above="@+id/linearLayout" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true"> + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" + android:padding="8dp" + android:src="@drawable/main_logo"/> + </RelativeLayout> </RelativeLayout> -</RelativeLayout>
\ No newline at end of file +</ScrollView>
\ No newline at end of file |