2015-02-07 12:58:18 +01:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-07-12 20:06:47 +02:00
|
|
|
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">
|
2015-02-07 12:58:18 +01:00
|
|
|
|
2015-07-12 20:06:47 +02:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/scrollView"
|
2015-02-07 12:58:18 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_alignParentTop="true">
|
2015-02-07 12:58:18 +01:00
|
|
|
|
2019-01-26 15:52:40 +01:00
|
|
|
<androidx.gridlayout.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-08-27 18:26:49 +02:00
|
|
|
xmlns:grid="http://schemas.android.com/apk/res-auto"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +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"
|
|
|
|
grid:alignmentMode="alignMargins"
|
|
|
|
grid:columnCount="2">
|
2015-02-07 12:58:18 +01:00
|
|
|
|
2015-07-12 20:06:47 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:text="Message / Caller"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2015-02-07 12:58:18 +01:00
|
|
|
|
2015-07-12 20:06:47 +02:00
|
|
|
<EditText
|
|
|
|
android:id="@+id/editContent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:ems="10"
|
|
|
|
android:inputType="textMultiLine"
|
|
|
|
android:text="Test" />
|
2015-02-07 12:58:18 +01:00
|
|
|
|
2016-10-03 20:51:28 +02:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/sendTypeSpinner"
|
|
|
|
android:layout_width="wrap_content"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
grid:layout_columnSpan="2"
|
2016-10-03 20:51:28 +02:00
|
|
|
android:text="send as SMS" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/sendButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
2016-10-03 20:51:28 +02:00
|
|
|
android:text="Send" />
|
2015-02-08 23:53:40 +01:00
|
|
|
|
2015-07-12 20:06:47 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/incomingCallButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:text="incoming call" />
|
2015-07-08 23:03:34 +02:00
|
|
|
|
2015-07-12 20:06:47 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/outgoingCallButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2016-10-03 20:51:28 +02:00
|
|
|
android:text="outgoing call" />
|
2015-07-12 20:06:47 +02:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/startCallButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:text="start call" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/endCallButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2016-10-03 20:51:28 +02:00
|
|
|
android:text="end call" />
|
2015-07-12 20:06:47 +02:00
|
|
|
|
|
|
|
<Button
|
2016-06-18 01:26:36 +02:00
|
|
|
android:id="@+id/setTimeButton"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2016-06-18 01:26:36 +02:00
|
|
|
android:text="set time" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/setMusicInfoButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:text="set music info" />
|
2016-10-03 20:51:28 +02:00
|
|
|
|
2015-12-28 14:38:56 +01:00
|
|
|
<Button
|
2018-03-31 16:21:25 +02:00
|
|
|
android:id="@+id/HeartRateButton"
|
2015-12-28 14:38:56 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2016-02-27 23:24:45 +01:00
|
|
|
android:text="Heart Rate Test" />
|
2016-10-03 20:51:28 +02:00
|
|
|
|
2015-07-12 20:06:47 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/rebootButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_gravity="fill_horizontal"
|
2015-07-12 20:06:47 +02:00
|
|
|
android:text="reboot" />
|
|
|
|
|
2019-10-30 22:08:09 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/SetFetchTimeButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="Set Activity Fetch Time" />
|
|
|
|
|
2018-12-16 16:05:13 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/factoryResetButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="factory reset" />
|
|
|
|
|
2016-10-03 20:51:28 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/testNotificationButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
2016-10-03 20:51:28 +02:00
|
|
|
android:text="create test notification" />
|
2018-11-01 15:04:16 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/testPebbleKitNotificationButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="create PebbleKit test notification" />
|
2018-03-31 16:21:25 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/fetchDebugLogsButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="Fetch device Debug Logs" />
|
2016-10-11 23:27:56 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/testNewFunctionality"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 18:26:49 +02:00
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
2016-10-11 23:27:56 +02:00
|
|
|
android:text="Test New Functionality" />
|
2018-08-28 14:03:57 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/shareLog"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="@string/share_log" />
|
2020-12-07 22:13:49 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/showWidgetsButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="Show all registered app widgets IDs" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/deleteWidgets"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="Delete all registered app widgets IDs" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/showWidgetsPrefs"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="Show app Widgets Preferences" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/deleteWidgetsPrefs"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
grid:layout_columnSpan="2"
|
|
|
|
grid:layout_gravity="fill_horizontal"
|
|
|
|
android:text="Delete app Widgets Preferences" />
|
|
|
|
|
2019-01-26 15:52:40 +01:00
|
|
|
</androidx.gridlayout.widget.GridLayout>
|
2015-07-12 20:06:47 +02:00
|
|
|
</ScrollView>
|
2015-07-08 23:03:34 +02:00
|
|
|
|
2015-02-07 12:58:18 +01:00
|
|
|
</RelativeLayout>
|