auto updating list widget
This commit is contained in:
26
app/src/main/res/layout/widget_list.xml
Normal file
26
app/src/main/res/layout/widget_list.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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"
|
||||
android:padding="4dp">
|
||||
|
||||
<!-- ListView to be shown on widget -->
|
||||
<ListView
|
||||
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:id="@+id/list_widget_empty_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="Empty list"
|
||||
android:textColor="#ffffff"
|
||||
android:textSize="20sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user