Skip to content

Instantly share code, notes, and snippets.

@Xiryl
Created May 6, 2020 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xiryl/add26103b9bd806b9c69145db3306df3 to your computer and use it in GitHub Desktop.
Save Xiryl/add26103b9bd806b9c69145db3306df3 to your computer and use it in GitHub Desktop.
WidgetGuide-1
<?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" >
<!-- ListView to be shown on widget -->
<ListView
android:id="@+id/widget_layout_listview"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!-- Empty view is show if list items are empty -->
<TextView
android:id="@+id/widget_layout_empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="No Data"
android:textColor="#ffffff"
android:textSize="20sp"
android:visibility="gone" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment