Increased touch target size of action buttons

This commit is contained in:
kenzo44 2023-10-16 22:50:51 -06:00
parent 53fb825ae3
commit 25e1783b1b

View file

@ -28,9 +28,11 @@
android:id="@+id/loop_layout" android:id="@+id/loop_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:orientation="horizontal" > android:orientation="horizontal" >
<TextView <com.google.android.material.button.MaterialButton
android:id="@+id/active_profile" android:id="@+id/active_profile"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -38,29 +40,23 @@
android:layout_marginEnd="5dp" android:layout_marginEnd="5dp"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center_vertical|center_horizontal" android:gravity="center_vertical|center_horizontal"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:hint="active profile" android:hint="active profile"
android:text="Profile" android:text="Profile"
android:textAppearance="?android:attr/textAppearanceSmall" android:textAppearance="?android:attr/textAppearanceSmall"
android:foreground="?attr/selectableItemBackgroundBorderless" app:icon="@drawable/ic_ribbon_profile"
app:drawableStartCompat="@drawable/ic_ribbon_profile"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
<TextView <com.google.android.material.button.MaterialButton
android:id="@+id/temp_target" android:id="@+id/temp_target"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end" android:layout_gravity="end"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center_vertical|center_horizontal" android:gravity="center_vertical|center_horizontal"
android:paddingTop="4dp"
android:paddingBottom="4dp"
android:hint="temp target" android:hint="temp target"
android:text="@string/value_unavailable_short" android:text="@string/value_unavailable_short"
android:textAppearance="?android:attr/textAppearanceSmall" android:textAppearance="?android:attr/textAppearanceSmall"
android:foreground="?attr/selectableItemBackgroundBorderless" app:icon="@drawable/ic_crosstarget"
app:drawableStartCompat="@drawable/ic_crosstarget"
tools:ignore="HardcodedText" /> tools:ignore="HardcodedText" />
</LinearLayout> </LinearLayout>
@ -72,7 +68,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginTop="4dp" android:layout_marginTop="1dp"
app:cardCornerRadius="4dp" app:cardCornerRadius="4dp"
app:contentPadding="2dp" app:contentPadding="2dp"
app:cardElevation="2dp" app:cardElevation="2dp"