Skip to content

Instantly share code, notes, and snippets.

@ccjeng
Last active December 26, 2015 09:44
Show Gist options
  • Save ccjeng/ef29086f5b273a446bad to your computer and use it in GitHub Desktop.
Save ccjeng/ef29086f5b273a446bad to your computer and use it in GitHub Desktop.
Android SwipeRefreshLayout's Layout
<framelayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="MergeRootFrame" >
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<listview
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
</android.support.v4.widget.SwipeRefreshLayout>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment