Created
October 21, 2014 14:44
-
-
Save prettyvoid/5a166d47f54b35abc45d to your computer and use it in GitHub Desktop.
Swipe layout list + Empty view as progress bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.v4.widget.SwipeRefreshLayout | |
android:id="@+id/swipe_container" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ListView | |
android:id="@android:id/list" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> | |
</android.support.v4.widget.SwipeRefreshLayout> | |
<FrameLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center"> | |
<ProgressBar | |
android:id="@android:id/empty" | |
style="@android:style/Widget.DeviceDefault.Light.ProgressBar.Large" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:indeterminate="true" /> | |
</FrameLayout> | |
</FrameLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment