Files
Notification-Utilities/app/src/main/res/layout/widget_list.xml
2016-01-09 01:32:21 +01:00

37 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:ellipsize="end"
android:maxLines="1"
android:padding="16dp"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:background="@color/colorPrimary"
android:text="@string/widget_list_title"
android:textColor="@android:color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!-- ListView to be shown on widget -->
<ListView
android:visibility="gone"
android:dividerHeight="4dp"
android:id="@+id/list_widget_listView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- Empty view is show if list items are empty -->
<TextView
android:background="@android:color/white"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:id="@+id/list_widget_empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/widget_list_empty"
android:textColor="@android:color/black" />
</LinearLayout>