J'utilise supportv4: 22.0.0 pour travailler avec SwipeRefreshLayout. Cela fonctionne bien mais il montre toujours une sorte de progrès circulaire au lieu de progrès horizontal.SwipeRefreshLayout ne montre pas la progression horizontale
Je joins la capture d'écran pour une meilleure compréhension
Je cette
Mais je veux que ce
code J'utilise dans mise en page
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ptr_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ListView
android:id="@+id/lv_news_feed_details"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="#dbdfea"
android:dividerHeight="1dp"
android:cacheColorHint="@null"
android:listSelector="#00000000"
/>
</android.support.v4.widget.SwipeRefreshLayout>
Java classe
mPullToRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.ptr_layout);
mPullToRefreshLayout.setOnRefreshListener(this);
mPullToRefreshLayout.setColorScheme(android.R.color.holo_blue_bright,
android.R.color.holo_green_light,
android.R.color.holo_orange_light,
android.R.color.holo_red_light);