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"
|
2016-08-31 15:12:26 +02:00
|
|
|
android:layout_width="wrap_content"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:layout_height="wrap_content">
|
2016-08-31 15:12:26 +02:00
|
|
|
|
2016-08-31 17:35:28 +02:00
|
|
|
<LinearLayout
|
2016-08-31 15:12:26 +02:00
|
|
|
android:layout_width="match_parent"
|
2016-08-31 17:35:28 +02:00
|
|
|
android:orientation="vertical"
|
2016-08-31 15:12:26 +02:00
|
|
|
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"
|
|
|
|
android:paddingTop="@dimen/activity_vertical_margin">
|
2016-08-31 15:12:26 +02:00
|
|
|
|
2016-08-31 17:35:28 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="fill_horizontal"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="2">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/exportDBButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
|
|
android:text="Export DB" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/importDBButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="Import DB" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
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"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/activity_db_management_path"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
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"
|
|
|
|
android:textColor="@color/accent" />
|
|
|
|
|
2016-08-31 17:35:28 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="fill_horizontal"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="2">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/deleteOldActivityDB"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="fill_horizontal"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="Delete old DB" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<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."
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
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
|
|
|
|
|
|
|
|
2016-08-31 17:35:28 +02:00
|
|
|
</LinearLayout>
|
2016-08-31 15:12:26 +02:00
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</RelativeLayout>
|