aboutsummaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-17 22:13:00 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-17 22:13:00 -0700
commit552aeb8ed0bcd05c535ed99df6a23ceba050f03a (patch)
tree831100764f5748f4d89686b5ac1ed5e61bd05131 /res/layout
parentf1c606ed35e8f409c817de8d50727779738e489c (diff)
downloaddsub-552aeb8ed0bcd05c535ed99df6a23ceba050f03a.tar.gz
dsub-552aeb8ed0bcd05c535ed99df6a23ceba050f03a.tar.bz2
dsub-552aeb8ed0bcd05c535ed99df6a23ceba050f03a.zip
#142 Add pull to refresh to all views
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/abstract_list_fragment.xml15
-rw-r--r--res/layout/chat.xml16
-rw-r--r--res/layout/select_album.xml19
3 files changed, 35 insertions, 15 deletions
diff --git a/res/layout/abstract_list_fragment.xml b/res/layout/abstract_list_fragment.xml
index bfce4792..3923f120 100644
--- a/res/layout/abstract_list_fragment.xml
+++ b/res/layout/abstract_list_fragment.xml
@@ -20,10 +20,17 @@
android:text="@string/common.empty"
android:visibility="gone" />
- <ListView
- android:id="@+id/fragment_list"
+ <android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/refresh_layout"
android:layout_width="fill_parent"
android:layout_height="0dip"
- android:layout_weight="1.0"
- android:fastScrollEnabled="true"/>
+ android:layout_weight="1.0">
+
+ <ListView
+ android:id="@+id/fragment_list"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:fastScrollEnabled="true"/>
+
+ </android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
diff --git a/res/layout/chat.xml b/res/layout/chat.xml
index 9b8f7d17..f2c1c3fd 100644
--- a/res/layout/chat.xml
+++ b/res/layout/chat.xml
@@ -7,12 +7,18 @@
<include layout="@layout/tab_progress" />
- <ListView
- android:id="@+id/chat_entries"
+ <android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/refresh_layout"
android:layout_width="fill_parent"
android:layout_height="0dip"
- android:layout_weight="1.0"
- android:textFilterEnabled="true" />
+ android:layout_weight="1.0">
+
+ <ListView
+ android:id="@+id/chat_entries"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:textFilterEnabled="true" />
+ </android.support.v4.widget.SwipeRefreshLayout>
<LinearLayout
android:layout_height="4dip"
@@ -32,7 +38,7 @@
android:layout_weight="1"
android:autoLink="all"
android:hint="@string/chat.send_a_message"
- android:inputType="textEmailAddress|textMultiLine"
+ android:inputType="textEmailAddress|textMultiLine"
android:linksClickable="true"
android:paddingBottom="10dip"
android:paddingTop="10dip" />
diff --git a/res/layout/select_album.xml b/res/layout/select_album.xml
index 01df495a..55747a18 100644
--- a/res/layout/select_album.xml
+++ b/res/layout/select_album.xml
@@ -20,12 +20,19 @@
android:layout_height="wrap_content"
android:padding="10dip"/>
- <com.mobeta.android.dslv.DragSortListView
- style="@style/DragDropListView"
- android:id="@+id/select_album_entries"
- android:textFilterEnabled="true"
+ <android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/refresh_layout"
android:layout_width="fill_parent"
android:layout_height="0dip"
- android:layout_weight="1.0"
- android:fastScrollEnabled="true"/>
+ android:layout_weight="1.0">
+
+ <com.mobeta.android.dslv.DragSortListView
+ style="@style/DragDropListView"
+ android:id="@+id/select_album_entries"
+ android:textFilterEnabled="true"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:fastScrollEnabled="true"/>
+
+ </android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout> \ No newline at end of file