items.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This file is part of Zandy.
  4. Zandy is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. Zandy is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with Zandy. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  16. android:orientation="vertical" android:layout_width="fill_parent"
  17. android:layout_height="fill_parent"
  18. android:id="@+id/items">
  19. <ListView android:id="@android:id/list" android:layout_width="fill_parent"
  20. android:layout_height="fill_parent"
  21. android:layout_weight="1" android:drawSelectorOnTop="false" />
  22. <!-- What to do if there's no data to show in the list -->
  23. <TextView android:id="@android:id/empty" android:layout_width="fill_parent"
  24. android:layout_height="fill_parent" android:textAppearance="?android:attr/textAppearanceMedium"
  25. android:text="No items to show. Try syncing, or create some." />
  26. </RelativeLayout>