Modify list_fragment.xml, adding SwipePrefreshLayout
authormasensio <masensio@solidgear.es>
Thu, 29 May 2014 13:51:38 +0000 (15:51 +0200)
committermasensio <masensio@solidgear.es>
Thu, 29 May 2014 13:51:38 +0000 (15:51 +0200)
res/layout/list_fragment.xml

index 00e6b41..8c578b7 100644 (file)
        android:layout_weight="1"
        android:orientation="vertical" >
 
        android:layout_weight="1"
        android:orientation="vertical" >
 
-       <com.owncloud.android.ui.ExtendedListView
-        android:id="@+id/list_root"
+    <android.support.v4.widget.SwipeRefreshLayout
+        android:id="@+id/srl_main"
         android:layout_width="match_parent"
         android:layout_width="match_parent"
-        android:layout_height="0dip"
-        android:layout_weight="1" 
-       />
-    
+        android:layout_height="match_parent" >
+
+        <com.owncloud.android.ui.ExtendedListView
+            android:id="@+id/list_root"
+            android:layout_width="match_parent"
+            android:layout_height="0dip"
+            android:layout_weight="1" />
+        
+    </android.support.v4.widget.SwipeRefreshLayout>
+
     <TextView
        android:id="@+id/empty_list_view"
         android:layout_width="match_parent"
     <TextView
        android:id="@+id/empty_list_view"
         android:layout_width="match_parent"