mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 10:31:03 +01:00
173 lines
7.1 KiB
XML
173 lines
7.1 KiB
XML
<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"
|
|
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 xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:grid="http://schemas.android.com/apk/res-auto"
|
|
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"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="incoming call" />
|
|
|
|
<Button
|
|
android:id="@+id/outgoingCallButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="outgoing call" />
|
|
|
|
<Button
|
|
android:id="@+id/startCallButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="start call" />
|
|
|
|
<Button
|
|
android:id="@+id/endCallButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="end call" />
|
|
|
|
<Button
|
|
android:id="@+id/setTimeButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
grid:layout_gravity="fill_horizontal"
|
|
android:text="set time" />
|
|
|
|
<Button
|
|
android:id="@+id/setMusicInfoButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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"
|
|
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"
|
|
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/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" />
|
|
</androidx.gridlayout.widget.GridLayout>
|
|
</ScrollView>
|
|
|
|
</RelativeLayout>
|