2016-08-31 15:12:26 +02:00
|
|
|
<RelativeLayout 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"
|
2017-03-11 19:49:57 +01:00
|
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.ControlCenterv2">
|
2016-08-31 15:12:26 +02:00
|
|
|
|
|
|
|
<ScrollView
|
2016-08-31 17:35:28 +02:00
|
|
|
android:id="@+id/scrollView2"
|
2017-08-27 18:26:49 +02:00
|
|
|
android:layout_width="match_parent"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:layout_height="wrap_content">
|
2016-08-31 15:12:26 +02:00
|
|
|
|
2018-01-08 11:32:28 +01:00
|
|
|
<android.support.v7.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:grid="http://schemas.android.com/apk/res-auto"
|
2016-08-31 15:12:26 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
2017-08-27 18:26:49 +02:00
|
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
|
|
grid:alignmentMode="alignBounds"
|
|
|
|
grid:columnCount="2">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/exportDBButton"
|
|
|
|
android:text="Export DB"
|
|
|
|
grid:layout_column="0"
|
|
|
|
grid:layout_gravity="center" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/importDBButton"
|
|
|
|
android:text="Import DB"
|
2018-01-08 11:32:28 +01:00
|
|
|
grid:layout_gravity="center"
|
|
|
|
grid:layout_column="1" />
|
2016-08-31 15:12:26 +02:00
|
|
|
|
2016-08-31 17:35:28 +02:00
|
|
|
|
2016-09-04 16:20:50 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/db_management_intro"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/activity_db_management_import_export_explanation"
|
2017-08-27 18:26:49 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_columnWeight="1" />
|
2016-09-04 16:20:50 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/activity_db_management_path"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_columnWeight="1" />
|
2016-09-04 16:20:50 +02:00
|
|
|
|
2016-08-31 17:35:28 +02:00
|
|
|
|
|
|
|
<TextView
|
2016-09-04 16:20:50 +02:00
|
|
|
android:id="@+id/mergeOldActivityDataTitle"
|
2016-08-31 15:12:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:layout_marginTop="40dp"
|
2016-09-04 16:20:50 +02:00
|
|
|
android:text="@string/activity_db_management_merge_old_title"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2017-08-27 18:26:49 +02:00
|
|
|
android:textColor="@color/accent"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_columnWeight="1" />
|
|
|
|
|
2016-09-04 16:20:50 +02:00
|
|
|
|
2017-08-27 18:26:49 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/deleteOldActivityDB"
|
|
|
|
android:layout_width="wrap_content"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="Delete old DB" />
|
2016-08-31 17:35:28 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/emptyDBText"
|
2016-08-31 15:12:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:layout_marginTop="40dp"
|
|
|
|
android:text="Warning! By pushing this button you will wipe your database and start from scratch."
|
2017-08-27 18:26:49 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_columnWeight="1" />
|
2016-08-31 15:12:26 +02:00
|
|
|
|
|
|
|
<Button
|
2016-08-31 17:35:28 +02:00
|
|
|
android:id="@+id/emptyDBButton"
|
2016-08-31 15:12:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:text="Empty DB" />
|
2016-08-31 15:12:26 +02:00
|
|
|
|
2017-08-27 18:26:49 +02:00
|
|
|
</android.support.v7.widget.GridLayout>
|
2016-08-31 15:12:26 +02:00
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</RelativeLayout>
|