Tweak priority row layout

pull/996/head
Alex Baker 5 years ago
parent 5fe6aedfbe
commit 4f2eb2bf42

@ -1,48 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
android:gravity="center_vertical">
<TextView
android:id="@+id/text"
style="@style/TaskEditTextPrimary"
android:layout_alignParentStart="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="0dp"
android:paddingEnd="@dimen/keyline_second"
android:gravity="start|center_vertical"
android:text="@string/TEA_importance_label"/>
<RadioGroup
android:layout_toEndOf="@id/text"
android:layout_alignParentEnd="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:paddingStart="@dimen/keyline_second"
android:paddingEnd="0dp"
android:gravity="end"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/priority_none"
style="@style/priority_button"
tools:ignore="UnusedAttribute"/>
style="@style/priority_button"/>
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/priority_low"
style="@style/priority_button"
tools:ignore="UnusedAttribute"/>
style="@style/priority_button"/>
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/priority_medium"
style="@style/priority_button"
tools:ignore="UnusedAttribute"/>
style="@style/priority_button"/>
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/priority_high"
style="@style/priority_button"
tools:ignore="UnusedAttribute"/>
style="@style/priority_button"/>
</RadioGroup>
</LinearLayout>
</RelativeLayout>

@ -133,10 +133,7 @@
</style>
<style name="priority_button_base">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">24dp</item>
<item name="android:layout_weight">1</item>
<item name="android:width">0dp</item>
</style>
<style name="priority_button" parent="priority_button_base">

Loading…
Cancel
Save