Added scrollview around about page

This commit is contained in:
Sylvain Berfini 2019-04-12 09:37:42 +02:00
parent e85e55f676
commit cbc68f5a4b
2 changed files with 285 additions and 256 deletions

View file

@ -5,13 +5,23 @@
android:background="?attr/backgroundColor" android:background="?attr/backgroundColor"
android:orientation="vertical"> android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="1"
android:background="@color/dark_grey_color" android:background="@color/dark_grey_color"
android:baselineAligned="false" android:baselineAligned="false"
android:padding="20dp"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
@ -77,7 +87,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="match_parent"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/backgroundColor" android:background="?attr/backgroundColor"
@ -133,24 +143,30 @@
<Button <Button
android:id="@+id/send_log" android:id="@+id/send_log"
style="android:attr/buttonBarButtonStyleStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="?attr/button_background_drawable" android:background="@drawable/assistant_button"
android:textColor="@drawable/assistant_button_text_color"
style="@style/button_font"
android:text="@string/menu_send_log" /> android:text="@string/menu_send_log" />
<Button <Button
android:id="@+id/reset_log" android:id="@+id/reset_log"
style="android:attr/buttonBarButtonStyleStyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="5dp" android:layout_margin="5dp"
android:background="?attr/button_background_drawable" android:background="@drawable/assistant_button"
android:textColor="@drawable/assistant_button_text_color"
style="@style/button_font"
android:text="@string/menu_reset_log" /> android:text="@string/menu_reset_log" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout> </LinearLayout>

View file

@ -5,15 +5,24 @@
android:background="?attr/backgroundColor" android:background="?attr/backgroundColor"
android:orientation="vertical"> android:orientation="vertical">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="1"
android:background="?attr/backgroundContastColor" android:background="?attr/backgroundContastColor"
android:gravity="center" android:gravity="center"
android:orientation="vertical" android:orientation="vertical"
android:padding="10dp"> android:padding="20dp">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -54,7 +63,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="match_parent"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
@ -135,4 +144,8 @@
</LinearLayout> </LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout> </LinearLayout>