Skip to content

Commit

Permalink
Optimize watch layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
residuum committed Feb 21, 2024
1 parent a2798e4 commit 4408d39
Showing 1 changed file with 35 additions and 41 deletions.
76 changes: 35 additions & 41 deletions app/src/main/res/layout-watch/activity_start_up.xml
Original file line number Diff line number Diff line change
@@ -1,53 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<ScrollView
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
tools:ignore="MissingConstraints">
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="0dp">

<androidx.appcompat.widget.SwitchCompat
android:id="@+id/active"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_horizontal_margin"
android:text="@string/send_data"/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="0dp">
android:paddingBottom="@dimen/activity_vertical_halfmargin">

<androidx.appcompat.widget.SwitchCompat
android:id="@+id/active"
android:layout_width="match_parent"
<Button
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:id="@+id/multi_touch_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_horizontal_margin"
android:text="@string/send_data"/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_halfmargin">

<Button
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:id="@+id/multi_touch_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:text="@string/multi_touch"
app:strokeWidth="1dp"
app:cornerRadius="4dp"
app:strokeColor="?attr/colorPrimary"
android:onClick="onStartMultiTouch"/>

</LinearLayout>
android:layout_gravity="end"
android:text="@string/multi_touch"
app:strokeWidth="1dp"
app:cornerRadius="4dp"
app:strokeColor="?attr/colorPrimary"
android:onClick="onStartMultiTouch"/>

<LinearLayout
android:id="@+id/sensor_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="0dp"/>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

<LinearLayout
android:id="@+id/sensor_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="0dp"/>
</LinearLayout>
</ScrollView>

0 comments on commit 4408d39

Please sign in to comment.