mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 02:21:14 +01:00
fcaf099e70
- only ask for notication monitoring permissions the on first start - filter out annoying system messages like keyboard notifications - rearrange buttons - bugfix for message being ignored when sending a test message to the Pebble (sender was used as message content)
73 lines
2.9 KiB
XML
73 lines
2.9 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" android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.ControlCenter">
|
|
|
|
<TextView
|
|
android:id="@+id/label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:text="From:" />
|
|
<EditText
|
|
android:id="@+id/editTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/label"
|
|
android:singleLine="true"
|
|
android:inputType="textEmailAddress" />
|
|
<TextView
|
|
android:id="@+id/textView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:layout_below="@+id/editTitle"
|
|
android:text="Message"/>
|
|
<EditText
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textMultiLine"
|
|
android:ems="10"
|
|
android:id="@+id/editContent"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignRight="@+id/editTitle"
|
|
android:layout_alignEnd="@+id/editTitle"
|
|
android:layout_below="@+id/textView" />
|
|
<Button
|
|
android:id="@+id/sendButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="send to Pebble"
|
|
android:layout_below="@+id/editContent"
|
|
android:layout_alignParentStart="true" />
|
|
<Button
|
|
android:id="@+id/testNotificationButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="create test notification"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentStart="true" />
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="start service"
|
|
android:id="@+id/startServiceButton"
|
|
android:layout_above="@+id/setTimeButton"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_alignEnd="@+id/setTimeButton" />
|
|
|
|
<Button
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="set time"
|
|
android:id="@+id/setTimeButton"
|
|
android:layout_above="@+id/testNotificationButton"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentStart="true" />
|
|
</RelativeLayout>
|