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