simplify ComposeOptionsView (#1734)
parent
57af67bf49
commit
ae651c3cf1
@ -1,68 +1,62 @@ |
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
tools:parentTag="android.widget.LinearLayout"> |
||||
tools:layout_height="wrap_content" |
||||
tools:layout_width="match_parent" |
||||
tools:parentTag="RadioGroup"> |
||||
|
||||
<RadioGroup |
||||
android:id="@+id/visibilityRadioGroup" |
||||
<RadioButton |
||||
android:id="@+id/publicRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="@dimen/compose_options_margin" |
||||
android:layout_marginLeft="@dimen/compose_options_margin" |
||||
android:layout_marginRight="@dimen/compose_options_margin" |
||||
android:layout_marginTop="4dp" |
||||
android:orientation="vertical"> |
||||
|
||||
<RadioButton |
||||
android:id="@+id/publicRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="4dp" |
||||
android:layout_weight="1" |
||||
android:paddingEnd="0dp" |
||||
android:paddingStart="10dp" |
||||
android:text="@string/visibility_public" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
|
||||
<RadioButton |
||||
android:id="@+id/unlistedRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="4dp" |
||||
android:layout_marginTop="4dp" |
||||
android:layout_weight="1" |
||||
android:paddingEnd="0dp" |
||||
android:paddingStart="10dp" |
||||
android:text="@string/visibility_unlisted" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
android:layout_marginBottom="4dp" |
||||
android:layout_weight="1" |
||||
android:button="@drawable/ic_public_24dp" |
||||
android:paddingStart="10dp" |
||||
android:paddingEnd="0dp" |
||||
android:text="@string/visibility_public" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
|
||||
<RadioButton |
||||
android:id="@+id/privateRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginBottom="4dp" |
||||
android:layout_marginTop="4dp" |
||||
android:layout_weight="1" |
||||
android:paddingEnd="0dp" |
||||
android:paddingStart="10dp" |
||||
android:text="@string/visibility_private" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
<RadioButton |
||||
android:id="@+id/unlistedRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="4dp" |
||||
android:layout_marginBottom="4dp" |
||||
android:layout_weight="1" |
||||
android:button="@drawable/ic_lock_open_24dp" |
||||
android:paddingStart="10dp" |
||||
android:paddingEnd="0dp" |
||||
android:text="@string/visibility_unlisted" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
|
||||
<RadioButton |
||||
android:id="@+id/directRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="4dp" |
||||
android:layout_weight="1" |
||||
android:paddingEnd="0dp" |
||||
android:paddingStart="10dp" |
||||
android:text="@string/visibility_direct" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
<RadioButton |
||||
android:id="@+id/privateRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="4dp" |
||||
android:layout_marginBottom="4dp" |
||||
android:layout_weight="1" |
||||
android:button="@drawable/ic_lock_outline_24dp" |
||||
android:paddingStart="10dp" |
||||
android:paddingEnd="0dp" |
||||
android:text="@string/visibility_private" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
|
||||
</RadioGroup> |
||||
<RadioButton |
||||
android:id="@+id/directRadioButton" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="4dp" |
||||
android:layout_weight="1" |
||||
android:button="@drawable/ic_email_24dp" |
||||
android:paddingStart="10dp" |
||||
android:paddingEnd="0dp" |
||||
android:text="@string/visibility_direct" |
||||
android:textColor="?android:textColorTertiary" |
||||
app:buttonTint="@color/compound_button_color" /> |
||||
|
||||
</merge> |
Loading…
Reference in new issue