Last active
August 26, 2019 17:57
-
-
Save DanishAmjad12/811998c1f935173b4aa94299f1830f6f to your computer and use it in GitHub Desktop.
This layout describes how you can add a SwipeRefreshLayout to your Layout file.
This file contains hidden or 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
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout | |
android:id="@+id/swipeRefresh" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/recycler" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
/> | |
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment