46 lines
1.6 KiB
XML
46 lines
1.6 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
||
|
android:id="@+id/notification_cardview"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
card_view:cardBackgroundColor="@color/cardColorBackground"
|
||
|
card_view:cardCornerRadius="6dp">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<TextView
|
||
|
android:text="Time"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:id="@+id/notification_time"
|
||
|
android:layout_weight="0.1" />
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:id="@+id/notification_text"
|
||
|
android:layout_weight="1"
|
||
|
android:text="Notification text" />
|
||
|
|
||
|
<Button
|
||
|
android:text="Dismiss"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="35dp"
|
||
|
android:id="@+id/notification_dismiss"
|
||
|
android:layout_weight="0.2" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</android.support.v7.widget.CardView>
|