unplugged-system/packages/modules/HealthFitness/apk/res/layout/widget_banner_preference.xml

66 lines
2.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingHorizontal="@dimen/spacing_banner"
android:paddingTop="@dimen/spacing_banner"
android:layout_marginHorizontal="@dimen/spacing_normal"
android:paddingBottom="@dimen/spacing_normal"
android:background="@drawable/banner_background">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/banner_icon"
android:layout_width="@dimen/icon_size"
android:layout_height="@dimen/icon_size"
app:tint="?android:attr/textColorPrimary" />
<Space
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"/>
<ImageView
android:id="@+id/dismiss_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_close"
android:visibility="gone"
app:tint="?android:attr/textColorPrimary" />
</LinearLayout>
<TextView
android:id="@+id/banner_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?attr/textAppearanceItem"
android:paddingVertical="@dimen/spacing_small"/>
<TextView
android:id="@+id/banner_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?attr/textAppearanceSummary"/>
<Button
android:id="@+id/banner_button"
android:paddingTop="@dimen/spacing_small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
style="@style/Widget.HealthConnect.Button.Borderless"
android:textColor="?android:attr/textColorPrimary"
android:visibility="gone"
/>
</LinearLayout>