Je souhaite déplacer la mise en page entière lorsque SwipeRefreshLayout Listener est appelé? Est-ce que cette chose est possible chez android? Ceci est toute ma mise en page xml.SwipeRefreshLayout contient une barre de progression et FrameLayout et qui est inclus dans un RelativeLayout.So je veux que le FrameLyout devrait s'arrêter quand j'appelle pour l'actualisation.Déplacer toute la mise en page sur swipeRefreshLayoutListener android
<?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:custom="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_navigation_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar_layout" />
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipeRefresh"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/toolbar">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ProgressBar
android:id="@+id/horizontal_sync_progress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/gradient_bg_end"
android:indeterminateDrawable="@drawable/progress_drawable"
android:progressDrawable="@drawable/progress_drawable"
android:visibility="gone"/>
<FrameLayout
android:id="@+id/container_frag"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</android.support.v4.widget.SwipeRefreshLayout>
</RelativeLayout>
</android.support.v4.widget.DrawerLayout>
</LinearLayout>
ce que vous essayez jusqu'à maintenant? S'il vous plaît poster un code –
vous devez définir SwipeRefreshLayout sur le dessus dans le fichier XML. –
ya..je vais partager mon xml – Divya