VidiDin-Android/notification/src/main/res/layout/layout_notification_residen...

110 lines
3.7 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="64dp"
android:background="@drawable/noti_bg_r16_white"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="12dp">
<FrameLayout
android:id="@+id/llRestored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/noti_bg_r8_green"
android:paddingHorizontal="12dp"
android:paddingVertical="7dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="34dp"
android:layout_height="34dp"
android:src="@drawable/ic_resident_restored" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical|end"
android:orientation="vertical">
<TextView
android:id="@+id/restored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/noti_restored"
android:textColor="#fff"
android:textSize="12sp" />
<TextView
android:id="@+id/files"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:lines="1"
android:text="@string/noti_restore_file_count"
android:textColor="#fff"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
<FrameLayout
android:layout_width="13dp"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@+id/llRestoreFiles"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/noti_bg_r8_blue">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="12dp"
android:paddingVertical="7dp">
<ImageView
android:layout_width="34dp"
android:layout_height="34dp"
android:src="@drawable/ic_resident_restore" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical|end">
<TextView
android:id="@+id/restore_file"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:text="@string/noti_restore_file"
android:textColor="#fff"
android:textSize="12sp" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/ivPoint"
android:layout_width="8dp"
android:layout_height="8dp"
android:layout_gravity="end"
android:src="@drawable/ic_resident_tip" />
</FrameLayout>
</LinearLayout>