summaryrefslogtreecommitdiff
path: root/core/java/android/widget/FastScroller.java
Commit message (Collapse)AuthorAgeFilesLines
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-1/+1
| | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
* Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang2020-10-281-1/+1
| | | | | | | | | This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-271-1/+1
| | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-061-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I41e12e425284e74561c6b61663241df364ae54a1
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+15
| | | | | | | | | | | | | | | | For packages: android.widget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ic61019b1df85448a158fc2ba55c326353222c6b9
* Resolve pointer icon over FastScroller to arrow.Vladislav Kaznacheev2017-02-161-0/+8
| | | | | | | | | Currently the icon defined by the host AbsListView is displayed over the fast scroll area. Bug: 35424111 Test: manual Change-Id: Ia9897a44550922f16573b97337841c3f6ae263da
* Merge "To call TypedArray.recycle() when we are done with the array."Alan Viverette2015-10-071-0/+1
|\
| * To call TypedArray.recycle() when we are done with the array.ferro_chang2015-03-091-0/+1
| | | | | | | | Change-Id: I6d672ce6c4e6521d82ef873ce69076b1f1cded56
* | Constrain width and height to >= 0 in FastScroller layoutAlan Viverette2015-06-251-8/+11
| | | | | | | | | | Bug: 22071990 Change-Id: I9dcb2066ee069a3764b7d711cb341a4dfdc4445e
* | Constrain FastScroller max width to be >= 0Alan Viverette2015-06-241-1/+1
| | | | | | | | | | Bug: 22055552 Change-Id: Ib0bba93e5490ad9d8668c9532f23654a8cb702d9
* | Check targetSdkVersion when passing size hints for UNSPECIFIED specsAdam Powell2015-06-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As of MNC stock widgets will pass a size in UNSPECIFIED MeasureSpec values as a hint of the container size. This lets things like list items size themselves at 1/3 the size of their container. This breaks assumptions in a few existing applications, so maintain the old expectation of 0 size in UNSPECIFIED MeasureSpecs for apps targeting older SDK versions. Bug 20975083 Change-Id: Ic7318e88854e00d96852dde2c0e10376b42bf77f
* | Correctly handle intercepted touch events in FastScrollerAlan Viverette2015-05-011-1/+13
| | | | | | | | | | | | | | | | | | Previously we'd return true from onIntercept and assume the DOWN event was handled, then onTouch would return false and the host view would receive the DOWN event. Now we consume the event in onTouch. Bug: 19080751 Change-Id: I1bd35b4c25a0760f4248ade443d09b8ca4b71e7c
* | Make UNSPECIFIED measure spec include size hint.Filip Gruszczynski2015-04-161-3/+6
| | | | | | | | Change-Id: I6c4f193d0590824c644e20e8af16d055a04ac9c9
* | Fix fast scroller thumb and track margins for MaterialAlan Viverette2015-04-071-57/+85
| | | | | | | | | | Bug: 20091610 Change-Id: Iab023872381aee16be2c83fcf1a622a20619ca49
* | Remove unnecessary null check in FastScrollerAlan Viverette2015-03-181-3/+3
| | | | | | | | | | Bug: 19805564 Change-Id: I12e1a3cadf52038fb480e5694d12b6ec5e0e467b
* | Add resource type annotations to some APIsTor Norbye2015-03-131-1/+2
| | | | | | | | Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
* | Update scrollbars to match Material specAlan Viverette2014-11-201-3/+22
| | | | | | | | | | | | | | | | Adds a minimum touch target size to the fast scroller so that we can edge-align an 8dp thumb but still maintain a 48dp touch target. BUG: 18467743 Change-Id: I31e9cf1948856f5fce7d75383b84a9359684ebe5
* | Prevent NPE when computing FastScroller position with no visible itemsAlan Viverette2014-11-131-6/+26
|/ | | | | BUG: 18371212 Change-Id: I90b1f540cdc6095e18242b879c50e8060de662ee
* Fix scroll position calculation when clipToPadding is falseYigit Boyar2014-09-181-4/+13
| | | | | Bug: 17568582 Change-Id: I904450d62c93105db5c61a071c7816278bb441be
* Update fast scroller preview for MaterialAlan Viverette2014-08-151-7/+23
| | | | | BUG: 16374061 Change-Id: Iefbbc4f3e8eccb89072bd0885cc337f9e0470d81
* Quick fix for updating the FastScroller long list propertyAlan Viverette2014-01-141-12/+20
| | | | | BUG: 12553181 Change-Id: I5305b0ec4ae8e069fc98d45dc3d5daaa0628ca79
* Merge "Peek the fast scroll thumb when it transitions to enabled state"Alan Viverette2013-12-181-4/+9
|\
| * Peek the fast scroll thumb when it transitions to enabled stateAlan Viverette2013-12-121-4/+9
| | | | | | | | Change-Id: I0b472c898c5975a74da3af2c8da6e55c3678b850
* | Don't cast FastScroller adapter to BaseAdapterAlan Viverette2013-12-131-4/+4
|/ | | | | BUG: 12130253 Change-Id: I78864a4603599daf39829d33414202c43ca97aa9
* Defer event interception in FastScrollerAlan Viverette2013-12-031-34/+16
| | | | | BUG: 11273369 Change-Id: Ic380069075b6317062697298a1b928cea9f3c484
* Allow styling of fast scroll decorations, add default stylesAlan Viverette2013-10-311-104/+141
| | | | | | | Also fixes bad old-style thumb 9-patches. BUG: 11030706 Change-Id: I51abba952acf87586449fbda329212b435d1d6df
* Fix assorted FastScroller regressionsAlan Viverette2013-10-151-4/+27
| | | | | | | | | | | Fixes the following bugs: - Don't show preview if text is empty, e.g. whitespace - Avoid transitioning decor from DRAGGING to DRAGGING - Restore original font size - Restore thumb position adjustment for last row BUG: 11207575 Change-Id: I72fc031d1fd22a41d81e7f52ca0856cf82d1be27
* Fix updating fast scroll state for data set changesAdam Powell2013-10-131-2/+4
| | | | | | | | | | | | | | Only looking for old/new count changes is incomplete with the current state of things. The observer's onChanged method will update this in some cases, stomping the different values needed to trigger a fast scroller update. Also update the fast scroller if the data change flag is set. Also fix the positioning of the legacy text overlay. Bug 11188512 Change-Id: I35b3915ce49f8494c6d82f6be6d6df7169deddd7
* Account for translationY when targeting the fast scroller via touchAdam Powell2013-10-131-2/+4
| | | | | | Bug 11188512 Change-Id: Ia8e0088760a18d5862bbe1b904610abd908a190e
* Fix font scaling issues in FastScroller and SubtitleViewAlan Viverette2013-10-041-2/+3
| | | | | BUG: 11080227 Change-Id: I0aa84e9b56c6900ad47efd45a5a0f772ce43f810
* Fix monkey bugs in ListViewAdam Powell2013-09-241-1/+1
| | | | | | | | | | | | | | | | | | * Don't run item click listeners as part of touch mode reset if the ListView is being detached from its window. Some calling code makes assumptions around this. * Remove redundant state tracking for window attachment from AbsListView now that we have View#isAttachedToWindow(). The timing of View's mechanism is closer to what we want here anyway - subclasses calling super.onDetachedFromWindow() as the first line of an overridden onDetachedFromWindow() method will see the window as being in a detached state while the rest of the method runs, resulting in the behavior described in the first bullet point above. Bug 10834897 Change-Id: Ic9fdff3c5cfc4996361a7fb1a863547b4d1a2c9c
* Only activate FastScroller when it's neededAlan Viverette2013-09-061-44/+51
| | | | | | | | | | Removes code that was incorrectly handling ACTION_DOWN when the host ListView started intercepting events for its own use. Fixes handling of short lists and changes resulting from toggling the FastScroller enabled state. BUG: 10651874 Change-Id: I7b088b46d00a372a0a55291db892cc059f1aed20
* Fix padding adjustment for scrollbars in View, FastScrollerAlan Viverette2013-08-091-27/+74
| | | | | BUG: 10224791,10248282 Change-Id: Ia89d2cbea163b7cad567ea37161552c1cfd66045
* Fix initial FastScroller enabled state, fix padding during layoutAlan Viverette2013-08-071-33/+72
| | | | | BUG: 10182784 Change-Id: I7f1ed029b68a1e6db6af0dc21e23aebca01bef31
* Fix FastScroller regression for non-UI threadsAlan Viverette2013-08-071-1/+2
| | | | | | | | | | | | Previously it was safe to call setFastScrollEnabled() and setFastScrollAlwaysVisible() off the UI thread. After switching FastScroller to use an Overlay, these methods stopped working. This change ensures that all direct interaction with FastScroller happens on the thread that created the host AbsListView. BUG: 10210504 Change-Id: Ib6d9bd9212965420c0de39546652e3bc2d32ff8b
* Show FastScroller thumb on mouse-overAlan Viverette2013-07-251-5/+25
| | | | | BUG: 9484233 Change-Id: I99a37e6d582e42b9a0fae4a0fc2d4348419bfa35
* Add disabled state to FastScroller.Alan Viverette2013-07-151-13/+45
| | | | | BUG: 9759511 Change-Id: I555f501b33029665d94a493ee5cab5741c843328
* resolved conflicts for merge of 9058a6c8 to masterJean-Baptiste Queru2013-07-081-1/+6
|\ | | | | | | Change-Id: I361773dac17a551dd7b4c0b0e4e649ddf7612d90
| * am fa42e774: Merge "FastScroller: Fix to use appropriate index"Jean-Baptiste Queru2013-07-081-1/+6
| |\ | | | | | | | | | | | | * commit 'fa42e774bc48c3172023c8c49610baa469c19e39': FastScroller: Fix to use appropriate index
| | * FastScroller: Fix to use appropriate indexVairavan Srinivasan2013-03-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix FastScroller to use appropriate index to determine the the position of a section while calculating the y coordinates of thumb. In case of last section, use totalItemCount to determine next section position. Change-Id: I89bfd483949b5c14f85303b50380a73b4a4e635e
* | | Fix FastScroller for single-section lists and untitled sections.Alan Viverette2013-06-251-41/+61
| | | | | | | | | | | | Change-Id: I121d9427e87e1a9e09562642f6aa621fc1cc849a
* | | Implement FastScroller as an animated overlay.Alan Viverette2013-06-211-578/+987
| | | | | | | | | | | | | | | Bug: 9372090 Change-Id: I46cb67ef0482a4c8f721248d5f5e2e692144c3a1
* | | Clean up FastScroller. Expand overlay to fit text content.Alan Viverette2013-06-071-64/+81
|/ / | | | | | | | | Bug: 6472526 Change-Id: I1b4d5ca87a1844d372553377294f9b7341f3bfd1
* / Fix bug #8629386 FastScroller is on the wrong side when switching to Hebrew ↵Fabrice Di Meglio2013-04-161-5/+35
|/ | | | | | | | | in a RTL enabled app - in AbsListView, force setScrollbarPosition() when RTL properties change - in FastScroller, invalidate the correct rectangle when in RTL mode and in STATE_EXIT Change-Id: Ie9fe4f826e179eb993e443d10e171b9dda3b6f3f
* Make ListView's FastScroller aware of layout directionFabrice Di Meglio2012-06-221-6/+4
| | | | | | - see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: Ia70836041150b5e305df1af57a68bcdb4969f78c
* Fix bug 5173029 - make fast scroller aware of scrolling containersAdam Powell2011-10-111-22/+117
| | | | | | | | | When a ListView with a FastScroller is located in a scrolling container, defer the start of the drag operation for a short time or until a touch slop is crossed. This allows these lists to be placed in containers like ViewPagers without immediately stealing touch events. Change-Id: I9b10b6993b24113c5e95c485bf57206747c73a84
* Fix bug 5199326 - ListView's fast scroller is out of sync with contentsAdam Powell2011-08-251-2/+4
| | | | | | | Also fix a bug where the fast scroll track was not being properly invalidated while animating out. Change-Id: Ie90568a993699d5d061985985e3d93165d1d2219
* Fix bug 5073637 - Market apps crashing FastScrollerAdam Powell2011-08-041-2/+7
| | | | | | | | | It seems that some popular Market apps do not properly implement SectionIndexer#getSectionForPosition and the framework did not previously call it. Revert to more simplistic scrollbar behavior for apps targeting sdk < Honeycomb. Change-Id: If0b1f2b4db540de4bb8ba45798e498c09cddb42f
* Make FastScroller behave kinder and gentler when an app decides toAdam Powell2011-06-141-2/+4
| | | | | | return null from SectionIndexer#getSections() Change-Id: I9132073f149e13051db13d2e563bd7c1a316046e
* Fix external bug http://code.google.com/p/android/issues/detail?id=15183Adam Powell2011-03-091-0/+3
| | | | | | Prevent overflow in FastScroller indexing Change-Id: I53f90feaefd49717a0bdaddcf9a4988318d40c7d