fastscroll

How to handle the fast-scroller on Lollipop 5.1?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 01:41:18
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, but I didn't find anything special, except for " setFastScrollStyle " . However, I couldn't find any

How to use fast scroll in android?

别来无恙 提交于 2019-12-03 01:38:09
问题 I have a list of events which are seperated by month and year (Jun 2010, Jul 2010 etc.) I want to enable fast scrolling because the list is really long. How do I enable fast scroll on ListViews in Android? 回答1: In the onCreate method of the ListActivity use setFastScrollEnabled: getListView().setFastScrollEnabled(true); 回答2: Use android:fastScrollEnabled in your xml: <ListView android:id="@+id/listview_files" ... android:fastScrollEnabled="true" > </ListView> 回答3: Try the following <?xml

Android alphabetical fast scrollview in RecyclerView with Collapsing toolbar

旧巷老猫 提交于 2019-11-29 21:22:19
In my application I have activity_main.xml like this:- <Coordinator Layout> <AppBarLayout> <CollapsingToolbarLayout> <ImageView/> <Toolbar/> </CollapsingToolbarLayout> </AppBarLayout> <RecyclerView/> </Coordinating Layout> Layout.xml ----->>> <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/theme_background"

android listview fast scroll customization issue

孤者浪人 提交于 2019-11-29 15:23:26
问题 here is my listview <ListView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/ListView" android:fastScrollEnabled="true" android:divider="@null" style="@drawable/listviewfastscrollstyle" ></ListView> This is listviewfastscrollstyle style file <style> <item name="android:fastScrollTrackDrawable">@drawable/listselector</item> <item name="android:fastScrollThumbDrawable">@drawable/listselector</item> </style> This is listselector file <selector xmlns

android fastScroll only covers part of the list

时间秒杀一切 提交于 2019-11-29 05:34:53
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 already scrolled to the bottom due to the odd behaviour of it only working in the top portion of the list.

Android alphabetical fast scrollview in RecyclerView with Collapsing toolbar

会有一股神秘感。 提交于 2019-11-28 17:01:41
问题 In my application I have activity_main.xml like this:- <Coordinator Layout> <AppBarLayout> <CollapsingToolbarLayout> <ImageView/> <Toolbar/> </CollapsingToolbarLayout> </AppBarLayout> <RecyclerView/> </Coordinating Layout> Layout.xml ----->>> <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/res-auto" android:layout

Avoid SwipeRefresh while fastScrolling in android

依然范特西╮ 提交于 2019-11-27 03:33:31
问题 I have a ListView having fastScroll always enabled and SwipeRefresh implementation. When i swipe the list downward, it refreshes the list. My problem is fastScroll . If the list has its first item visible or say at its initial top, then if scroll the fastScrollThumb downward, it does the Swipe effect not the scroll down. Is there anyway/solution that if i press the fastScrollThumb , then it should not do Swipe refresh effect rather it should scroll down as it natural behavior. EDITED My XML

How to add a fast-scroller to the RecyclerView

冷暖自知 提交于 2019-11-26 19:24:08
Background On ListView, you could have a fast scroller which allowed you to drag a scrollbar to easily scroll to wherever you wished (using fastScrollEnabled attribute) Together with " SectionIndexer " class and optionally some attributes, you could have a nice popup that shows as you use this scrollbar (link here ). Such a thing is shown on the contacts app so that you could scroll easily to specific letters. The problem RecyclerView doesn't seem to have any of those. Not even a fast-scroll. The question How do I add a fast scroller functionality for the RecyclerView? I stumbled on this

How to add a fast-scroller to the RecyclerView

痞子三分冷 提交于 2019-11-26 06:57:33
问题 Background On ListView, you could have a fast scroller which allowed you to drag a scrollbar to easily scroll to wherever you wished (using fastScrollEnabled attribute) Together with \"SectionIndexer\" class and optionally some attributes, you could have a nice popup that shows as you use this scrollbar (link here). Such a thing is shown on the contacts app so that you could scroll easily to specific letters. The problem RecyclerView doesn\'t seem to have any of those. Not even a fast-scroll.