mirror of https://github.com/tasks/tasks
Use SwipeRefreshLayout
parent
99618b45d8
commit
77625c2ff7
@ -1,31 +1,42 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
<!--
|
android:layout_width="match_parent"
|
||||||
** Copyright (c) 2012 Todoroo Inc
|
android:layout_height="match_parent"
|
||||||
**
|
|
||||||
** See the file "LICENSE" for the full license governing this code.
|
|
||||||
-->
|
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="fill_parent"
|
|
||||||
android:layout_weight="100">
|
android:layout_weight="100">
|
||||||
|
|
||||||
<!-- No Tasks label -->
|
<android.support.v4.widget.SwipeRefreshLayout
|
||||||
<TextView android:id="@android:id/empty"
|
android:id="@+id/swipe_layout"
|
||||||
android:drawableTop="@drawable/icon"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:gravity="center"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:clickable="true"
|
|
||||||
android:text="@string/TLA_no_items"
|
|
||||||
style="@style/TextAppearance.TLA_NoItems"/>
|
|
||||||
|
|
||||||
<!-- Task List -->
|
|
||||||
<ListView android:id="@android:id/list"
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="wrap_content">
|
||||||
style="@style/ListView" />
|
|
||||||
|
<ListView
|
||||||
|
android:id="@android:id/list"
|
||||||
</FrameLayout>
|
style="@style/ListView"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent" />
|
||||||
|
|
||||||
|
</android.support.v4.widget.SwipeRefreshLayout>
|
||||||
|
|
||||||
|
<android.support.v4.widget.SwipeRefreshLayout
|
||||||
|
android:id="@+id/swipe_layout_empty"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/empty_text"
|
||||||
|
style="@style/TextAppearance.TLA_NoItems"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:clickable="true"
|
||||||
|
android:drawableTop="@drawable/icon"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/TLA_no_items" />
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</android.support.v4.widget.SwipeRefreshLayout>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|||||||
@ -1,32 +1,43 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
<!--
|
android:layout_width="match_parent"
|
||||||
** Copyright (c) 2012 Todoroo Inc
|
android:layout_height="match_parent"
|
||||||
**
|
|
||||||
** See the file "LICENSE" for the full license governing this code.
|
|
||||||
-->
|
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="100">
|
android:layout_weight="100">
|
||||||
|
|
||||||
<!-- No Tasks label -->
|
<android.support.v4.widget.SwipeRefreshLayout
|
||||||
<TextView android:id="@android:id/empty"
|
android:id="@+id/swipe_layout"
|
||||||
android:drawableTop="@drawable/icon"
|
android:layout_width="fill_parent"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center"
|
<com.todoroo.astrid.ui.DraggableListView
|
||||||
android:gravity="center"
|
android:id="@android:id/list"
|
||||||
android:visibility="gone"
|
style="@style/ListView"
|
||||||
android:clickable="true"
|
android:layout_width="fill_parent"
|
||||||
android:text="@string/TLA_no_items"
|
android:layout_height="fill_parent"
|
||||||
style="@style/TextAppearance.TLA_NoItems"/>
|
android:drawSelectorOnTop="false" />
|
||||||
|
|
||||||
<com.todoroo.astrid.ui.DraggableListView xmlns:android="http://schemas.android.com/apk/res/android"
|
</android.support.v4.widget.SwipeRefreshLayout>
|
||||||
|
|
||||||
android:id="@android:id/list"
|
<android.support.v4.widget.SwipeRefreshLayout
|
||||||
|
android:id="@+id/swipe_layout_empty"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="wrap_content">
|
||||||
android:drawSelectorOnTop="false"
|
|
||||||
style="@style/ListView" />
|
<ScrollView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
</FrameLayout>
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/empty_text"
|
||||||
|
style="@style/TextAppearance.TLA_NoItems"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:clickable="true"
|
||||||
|
android:drawableTop="@drawable/icon"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/TLA_no_items" />
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</android.support.v4.widget.SwipeRefreshLayout>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|||||||
Loading…
Reference in New Issue