wulkanowy-mod/app/src/main/res/layout/item_message_chips.xml

50 lines
2.2 KiB
XML
Raw Normal View History

<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2021-08-04 15:16:54 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/messageChipsLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context=".ui.modules.message.tab.MessageTabAdapter">
<com.google.android.material.chip.ChipGroup
android:id="@+id/messageChipGroup"
android:layout_width="wrap_content"
2021-08-04 15:16:54 +02:00
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingLeft="16dp"
android:paddingTop="10dp"
android:paddingRight="16dp"
2021-08-04 15:16:54 +02:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:singleLine="true">
<com.google.android.material.chip.Chip
android:id="@+id/chip_mailbox"
style="@style/Widget.MaterialComponents.Chip.Action"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/message_chip_all_mailboxes" />
2021-08-04 15:16:54 +02:00
<com.google.android.material.chip.Chip
android:id="@+id/chip_unread"
style="@style/Widget.MaterialComponents.Chip.Choice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/message_chip_only_unread"
app:checkedIcon="@drawable/ic_mtrl_chip_checked_black"
app:checkedIconEnabled="true"
app:checkedIconTint="@color/mtrl_choice_chip_text_color" />
<com.google.android.material.chip.Chip
android:id="@+id/chip_attachments"
style="@style/Widget.MaterialComponents.Chip.Choice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/message_chip_only_with_attachments"
app:checkedIcon="@drawable/ic_mtrl_chip_checked_black"
app:checkedIconEnabled="true"
app:checkedIconTint="@color/mtrl_choice_chip_text_color" />
</com.google.android.material.chip.ChipGroup>
</HorizontalScrollView>