SwipeRefreshLayout ile çalışmak için supportv4: 22.0.0 kullanıyorum. Yapıtları iyi ama yatay yoldan ilerlemek yerine her zaman döngüsel bir ilerleme gösteriyor.SwipeRefreshLütfen yatay ilerlemeyi göstermiyor
daha iyi anlaşılması için ekran görüntüsünü de ekliyoruz
Bu
var Ama bu
Kanunu gibi ben Düzeni
<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 içinde kullanıyorum istiyorum sınıf
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);