BayernMessenger/vector/src/main/res/layout/vector_preference_bing_rule...

82 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:baselineAligned="false"
android:clipToPadding="false"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:orientation="vertical"
android:paddingStart="?android:attr/listPreferredItemPaddingLeft"
android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
android:paddingEnd="?android:attr/listPreferredItemPaddingRight"
android:paddingRight="?android:attr/listPreferredItemPaddingRight">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp">
<TextView
android:id="@android:id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceListItem"
android:textSize="16sp"
tools:text="Title" />
<TextView
android:id="@android:id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@android:id/title"
android:layout_alignStart="@android:id/title"
android:layout_alignLeft="@android:id/title"
android:maxLines="2"
android:paddingTop="6dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp"
tools:text="Summary"
tools:visibility="gone" />
</RelativeLayout>
<RadioGroup
android:id="@+id/bingPreferenceRadioGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:orientation="horizontal"
android:paddingTop="6dp"
android:paddingBottom="16dp">
<RadioButton
android:id="@+id/bingPreferenceRadioBingRuleOff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notification_off"
tools:checked="true" />
<RadioButton
android:id="@+id/bingPreferenceRadioBingRuleSilent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notification_silent" />
<RadioButton
android:id="@+id/bingPreferenceRadioBingRuleNoisy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notification_noisy" />
</RadioGroup>
</LinearLayout>