mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-16 06:59:29 +01:00
309 lines
13 KiB
XML
309 lines
13 KiB
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:grid="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.ControlCenterv2">
|
|
|
|
<ScrollView
|
|
android:id="@+id/scrollView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignParentTop="true">
|
|
|
|
<androidx.gridlayout.widget.GridLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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">
|
|
|
|
<TextView
|
|
android:id="@+id/textView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="Message / Caller"
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<EditText
|
|
android:id="@+id/editContent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:ems="10"
|
|
android:inputType="textMultiLine"
|
|
android:text="Test" />
|
|
|
|
<Spinner
|
|
android:id="@+id/sendTypeSpinner"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_gravity="fill_horizontal"
|
|
grid:layout_columnSpan="2"
|
|
android:text="send as SMS" />
|
|
|
|
<Button
|
|
android:id="@+id/sendButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="Send" />
|
|
|
|
<Button
|
|
android:id="@+id/incomingCallButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="incoming call" />
|
|
|
|
<Button
|
|
android:id="@+id/outgoingCallButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="outgoing call" />
|
|
|
|
<Button
|
|
android:id="@+id/startCallButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="start call" />
|
|
|
|
<Button
|
|
android:id="@+id/endCallButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="end call" />
|
|
|
|
<Button
|
|
android:id="@+id/setTimeButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="set time" />
|
|
|
|
<Button
|
|
android:id="@+id/setMusicInfoButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="set music info" />
|
|
|
|
<Button
|
|
android:id="@+id/HeartRateButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="Heart Rate Test" />
|
|
|
|
<Button
|
|
android:id="@+id/rebootButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="reboot" />
|
|
|
|
<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" />
|
|
|
|
<Button
|
|
android:id="@+id/setWeatherButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="Set Weather" />
|
|
|
|
<Button
|
|
android:id="@+id/showCachedWeatherButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="Show Cached Weather" />
|
|
|
|
<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" />
|
|
|
|
<Button
|
|
android:id="@+id/testNotificationButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="create test notification" />
|
|
<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" />
|
|
<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" />
|
|
<Button
|
|
android:id="@+id/testNewFunctionality"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="Test New Functionality" />
|
|
<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" />
|
|
<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" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/activity_list_debug_extra_time_range"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="4dp"
|
|
android:layout_marginTop="7dp"
|
|
android:padding="4dp"
|
|
android:paddingLeft="10dp"
|
|
android:text="Activity summary extra date range (takes long to generate when used)"
|
|
android:textStyle="bold"
|
|
grid:layout_columnSpan="2" />
|
|
<Button
|
|
android:id="@+id/addDeviceButtonDebug"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="Add test device manually" />
|
|
|
|
<Button
|
|
android:id="@+id/removeDevicePreferences"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Remove device preferences"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal" />
|
|
|
|
<Button
|
|
android:id="@+id/runDebugFunction"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Run Debug Function"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal" />
|
|
|
|
<Button
|
|
android:id="@+id/startFitnessAppTracking"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/pref_device_action_fitness_app_control_start"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal" />
|
|
|
|
<Button
|
|
android:id="@+id/stopFitnessAppTracking"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/pref_device_action_fitness_app_control_stop"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal" />
|
|
|
|
<Button
|
|
android:id="@+id/showStatusFitnessAppTracking"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Show Fit.App.Track. Status"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal" />
|
|
|
|
<Button
|
|
android:id="@+id/stopPhoneGpsLocationListener"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/pref_device_action_phone_gps_location_listener_stop"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal" />
|
|
|
|
<Button
|
|
android:id="@+id/showCompanionDevices"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="@string/debug_companion_show_associated" />
|
|
|
|
<Button
|
|
android:id="@+id/pairAsCompanion"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_columnSpan="2"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="@string/debug_companion_pair_current" />
|
|
</androidx.gridlayout.widget.GridLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</RelativeLayout>
|