AndroidAPS/app/src/main/res/layout/activity_setupwizard.xml

105 lines
3.8 KiB
XML
Raw Normal View History

2018-04-20 17:27:31 +02:00
<?xml version="1.0" encoding="utf-8"?>
2018-05-09 18:49:42 +02:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-05-13 13:40:34 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-04-20 17:27:31 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-05-09 18:49:42 +02:00
android:orientation="vertical"
2018-05-20 21:55:53 +02:00
tools:context=".setupwizard.SetupWizardActivity">
2018-04-20 17:27:31 +02:00
2018-05-25 13:00:08 +02:00
<LinearLayout
2018-05-13 13:40:34 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-05-25 13:00:08 +02:00
android:orientation="horizontal">
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_weight="1"
android:background="@android:color/transparent"
android:onClick="exitPressed"
app:srcCompat="@drawable/ic_exit_to_app" />
<TextView
android:id="@+id/sw_exit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginStart="10dp"
android:layout_weight="1"
android:text="@string/exit"
android:textAppearance="@android:style/TextAppearance.Material.Medium"
android:textStyle="bold" />
</LinearLayout>
2018-05-13 13:40:34 +02:00
2018-04-20 17:27:31 +02:00
<TextView
2018-05-03 21:29:34 +02:00
android:id="@+id/sw_content"
2018-04-20 17:27:31 +02:00
android:layout_width="match_parent"
2018-05-09 18:49:42 +02:00
android:layout_height="wrap_content"
2018-04-20 17:27:31 +02:00
android:keepScreenOn="true"
2018-05-13 13:40:34 +02:00
android:textAlignment="center"
android:textColor="#FFFFFF"
android:textSize="32sp"
tools:text="Title" />
2018-04-20 17:27:31 +02:00
2018-05-13 13:40:34 +02:00
<ScrollView
android:id="@+id/sw_scrollview"
2018-04-20 17:27:31 +02:00
android:layout_width="match_parent"
2018-05-13 13:40:34 +02:00
android:layout_height="0dp"
android:layout_weight="1">
<LinearLayout
android:id="@+id/sw_content_fields"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical"
android:padding="16dp" />
</ScrollView>
2018-04-23 14:58:27 +02:00
2018-05-09 18:49:42 +02:00
<LinearLayout
android:id="@+id/sw_content_controls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:background="@color/black_overlay"
2018-05-13 13:40:34 +02:00
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingRight="16dp">
2018-04-23 14:58:27 +02:00
2018-05-09 18:49:42 +02:00
<Button
android:id="@+id/previous_button"
2018-05-13 13:40:34 +02:00
android:layout_width="wrap_content"
2018-04-20 17:27:31 +02:00
android:layout_height="wrap_content"
2018-05-13 13:40:34 +02:00
android:background="@android:color/transparent"
2018-05-09 18:49:42 +02:00
android:onClick="showPreviousPage"
2018-07-02 15:04:09 +02:00
android:text="@string/previous_button"
2018-05-13 13:40:34 +02:00
android:textColor="#FFFFFF" />
2018-04-23 14:58:27 +02:00
2018-05-13 13:40:34 +02:00
<View
2018-05-09 18:49:42 +02:00
android:layout_width="0dp"
2018-05-13 13:40:34 +02:00
android:layout_height="match_parent"
android:layout_weight="1" />
2018-04-23 16:03:22 +02:00
2018-05-09 18:49:42 +02:00
<Button
android:id="@+id/next_button"
2018-05-13 13:40:34 +02:00
android:layout_width="wrap_content"
2018-05-09 18:49:42 +02:00
android:layout_height="wrap_content"
2018-05-13 13:40:34 +02:00
android:background="@android:color/transparent"
2018-05-09 18:49:42 +02:00
android:onClick="showNextPage"
2018-07-02 15:04:09 +02:00
android:text="@string/next_button"
2018-05-13 13:40:34 +02:00
android:textColor="#FFFFFF" />
2018-04-23 16:03:22 +02:00
2018-05-09 18:49:42 +02:00
<Button
android:id="@+id/finish_button"
2018-05-13 13:40:34 +02:00
android:layout_width="wrap_content"
2018-05-09 18:49:42 +02:00
android:layout_height="wrap_content"
2018-05-13 13:40:34 +02:00
android:background="@android:color/transparent"
2018-05-09 18:49:42 +02:00
android:onClick="finishSetupWizard"
android:text="@string/setupwizard_finish"
2018-05-13 13:40:34 +02:00
android:textColor="#FFFFFF" />
2018-04-20 17:27:31 +02:00
2018-05-09 18:49:42 +02:00
</LinearLayout>
2018-04-20 17:27:31 +02:00
2018-05-09 18:49:42 +02:00
</LinearLayout>