fastscroll

How to enable fast scrolling for a ListFragment?

不羁岁月 提交于 2020-01-15 05:14:08
问题 I use a fragment activity to hold a list fragment which renders a bunch of products: public class ProductsListActivity extends SherlockFragmentActivity { @Override public void onCreate(Bundle savedInstanceState) { setTheme(R.style.Sherlock___Theme); super.onCreate(savedInstanceState); setContentView(R.layout.fragment_products_list); // setFastScrollEnabled(true) ? } } ... <!-- fragment_products_list.xml --> <?xml version="1.0" encoding="utf-8"?> <fragment xmlns:android="http://schemas.android

How to handle the fast-scroller on Lollipop 5.1?

北城以北 提交于 2019-12-31 17:56:10
问题 Background I've made a tiny library, which shows how to mimic the style of the stock contacts app of Android Lollipop, here. The problem It seems that on Android 5.1 , the fast scroller looks very different than the previous one, and it's too close to the right, so it's hard to use it. screenshot of Android 4.4 : Here's a screenshot on Android 5 : and on Android 5.1 : What I've found I've tried to go over all of the "what's new" section of Android 5.1, and also in some related classes docs,

android fastScroll only covers part of the list

一曲冷凌霜 提交于 2019-12-18 04:31:45
问题 I have a class which implements expandable list activity . In the XML code (or I can do it in java), I set fastScrollEnabled to true . This does in deed enable fast scroll. BUT fast scroll only works in the top portion of the list. Like I can use the fastscroll thumb bar to scroll the whole list but only works in the top section of the scroll bar. It's not proportionate to the entire list. I can drag the thumb bar to the bottom of the list but it does no scrolling since the listview is

android - listview fastscroll with alphabet like on iPhone contacts activity

杀马特。学长 韩版系。学妹 提交于 2019-12-11 20:57:52
问题 Hi I am simply trying to implement an iPhone like fastscroll with an alphabetic scrollbar. See here: http://appsreviews.com/wp-content/uploads/2010/08/Cures-A-Z-App-for-iPhone.jpg Surprisingly I cannot find anything like that for android. Appreciate any help. <ListView android:id="@+id/lstItems" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_below="@id/seekbarvalue" android:scrollbarThumbVertical="@drawable/scrollbar

Recyclerview fast scroll items disappear

前提是你 提交于 2019-12-10 18:47:03
问题 I am using GridLayoutManager with recyclerview, when i fast scroll down one item out of four visible grid items (bottom right ) is moved further down, I am using this tutorial to implement fast scroll and fast scroll indicator here 回答1: Guess i've found the solution. Looks like when the Recycled Views are attached to the Window again, their state is changed to Invisible (IDK why). All we have to do is make it visible again. Fortunately, RecyclerView.Adapter class has a method to handle when a

Android ListView fastScrollThumbDrawable not working

只谈情不闲聊 提交于 2019-12-10 11:05:34
问题 i am doing an app where i want the fastscroll tab on my listview to be a custom thumb tab. reading the docs online i thought this would do it: <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false" android:cacheColorHint="@color/myWhite" android:scrollbars="vertical" android:scrollbarThumbVertical="@drawable/scrollthumb" android:scrollbarSize="12dip" android:fastScrollThumbDrawable="@drawable/scrollbar

Android L: Fast scroll for the RecyclerView

元气小坏坏 提交于 2019-12-09 13:35:14
问题 I'm trying to use RecyclerView in my application with lots of data in it and would like to make a fast scroll for it, just like for the ListView . Approach from this answer worked for me with ListView , but does not work for the RecyclerView . Even if I set fast scroll to true in RecyclerView layout, it still does not work: <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:scrollbars="vertical" android:layout_width="match_parent" android:layout_height="match

Can we have a custom scrollbar on an ScrollView?

好久不见. 提交于 2019-12-08 02:20:06
问题 I'd like to make a custom scrollbar for one of my scrollview, and impossible to find how to do. I want my scrollbar to be more visible, and controllable like the fastScroll of the ListViews. Unfortunately there is no setFastScrollEnabled(true) on the ScrollView. \o/ So say welcome to my two first questions : How to change the scrollbar appearence? How to activate fast scrolling on a ScrollView? Then another idea come to me : adding buttons and indicators on the scrollbar, as a goToTop and a

How to detect if a ListView is fast scrolling

隐身守侯 提交于 2019-12-05 02:26:02
问题 Is there a way to detect if a ListView is fast scrolling? That is to say, can we somehow know when the user presses and releases the FastScroller? 回答1: Reflection allows you to do it. By taking a look at the AbsListView source code, there is a FastScroller object which indicates a wrapper around the fast scrolling functionality. Its source code shows an interesting field: /** * Current decoration state, one of: * <ul> * <li>{@link #STATE_NONE}, nothing visible * <li>{@link #STATE_VISIBLE},

How to detect if a ListView is fast scrolling

孤者浪人 提交于 2019-12-03 16:41:11
Is there a way to detect if a ListView is fast scrolling? That is to say, can we somehow know when the user presses and releases the FastScroller? Reflection allows you to do it. By taking a look at the AbsListView source code , there is a FastScroller object which indicates a wrapper around the fast scrolling functionality. Its source code shows an interesting field : /** * Current decoration state, one of: * <ul> * <li>{@link #STATE_NONE}, nothing visible * <li>{@link #STATE_VISIBLE}, showing track and thumb * <li>{@link #STATE_DRAGGING}, visible and showing preview * </ul> */ private int