Skip to content

Instantly share code, notes, and snippets.

@sagorbrur
Created August 28, 2017 10:18
Show Gist options
  • Save sagorbrur/8f459cb988a16367f0f8198d9787e936 to your computer and use it in GitHub Desktop.
Save sagorbrur/8f459cb988a16367f0f8198d9787e936 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.sagorsarker.addingswiprefresh.MainActivity">
<!--refresh layout-->
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swiperefresh"
android:layout_width="368dp"
android:layout_height="495dp"
tools:layout_editor_absoluteY="8dp"
tools:layout_editor_absoluteX="8dp">
<!-- <ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" />-->
<TextView
android:id="@+id/text_edit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="My Text" />
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment