Tôi đang sử dụng supportv4: 22.0.0 để làm việc với SwipeRefreshLayout. Công trình của nó tốt nhưng nó luôn luôn là một loại hình tròn của sự tiến bộ thay vì tiến bộ theo chiều ngang.SwipeRefreshLay không hiển thị tiến trình ngang
Tôi có kèm theo ảnh chụp màn hình cho sự hiểu biết tốt hơn
Tôi có điều này
Nhưng tôi muốn như
Bộ luật này tôi đang sử dụng trong Layout
<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 lớp
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);