Commit Graph

628 Commits

Author SHA1 Message Date
Adam Powell
2a20ddd90b Tame some monkeys
Change-Id: I1bdcd466d6bacb0cebdd6bb0b5339477c2c284b0
2010-03-11 18:09:59 -08:00
Adam Powell
84222e0425 Fix overscroll distance calculation for stack-from-bottom ListViews
Change-Id: Ic8278763586d03c152f7b30b7fdd0b37b0dfc9cb
2010-03-11 14:31:17 -08:00
Adam Powell
bfb5d4b93b Added overscroll headers and footers to ListView.
These let developers set a drawable for the list header and footer
to be drawn above and below list content.

Change-Id: Ideddec854cb0bc11f83efb3c000c217844be82c7
2010-03-10 22:14:28 -08:00
Svetoslav Ganov
be75659485 Fixing bug 2502522 - Accessibility events contain text of invisible views
Change-Id: I0eccc82ad9f3139e46942cb61212bb83f992c173
2010-03-10 11:51:20 -08:00
Adam Powell
97566043af Fix ListView filter popups when window focus changes
Change-Id: I8c468900d5dd4d8d82308e2bed3bf992b6c803c7
2010-03-09 15:34:09 -08:00
Adam Powell
fee20911e3 Fix bug with AbsListView position scrolling
Change-Id: I91338f0533178417c874325f5f126d1b5fbb5f92
2010-03-09 13:45:21 -08:00
Adam Powell
637c0dce32 Merge "Restore old/buggy behavior of ListView.getCheckItemIds() for adapters without stable IDs to support legacy code." 2010-03-09 11:55:05 -08:00
Adam Powell
463ceff8a4 Restore old/buggy behavior of ListView.getCheckItemIds() for adapters without stable IDs to support legacy code.
Change-Id: I4c6a15e5a224bc5e84949ceb4df17154a2874d20
2010-03-09 11:50:51 -08:00
Andreas Huber
2869e952c6 Fix a typo in VideoView.java that disabled the seek-back button by default.
Change-Id: I23a9423b20646529b652e23349266a3291981484
related-to-bug: 2498317
2010-03-09 10:26:13 -08:00
Adam Powell
eb6a592a28 Merge "Fix issues with ListView.smoothScrollBy" 2010-03-08 19:11:16 -08:00
Adam Powell
029cfbd6f2 Fix issues with ListView.smoothScrollBy
Change-Id: I4a2752c56a1d2ad3227644f764d6be7a02c9eb8d
2010-03-08 19:07:14 -08:00
Romain Guy
56ec3c888a Merge "Fix scrolling bug in AutoCompleteTextView. Bug #2495033" 2010-03-08 17:46:36 -08:00
Romain Guy
3e14168500 Fix scrolling bug in AutoCompleteTextView.
Bug #2495033

This fixes various issues. ACTV would sometimes not update its popup to match
its size/location.

Change-Id: Ic662bddf40e49b09482b15ff91666be3709da1d5
2010-03-08 17:44:40 -08:00
The Android Open Source Project
9161e202d1 merge from open-source master
Change-Id: I66d3db4c9ed3f54ce17a8d64ca0c6cce6941cdaa
2010-03-08 17:14:25 -08:00
Romain Guy
8e618e54ef Report scroll events from ScrollView and HorizontalScrollView.
Bug #2342763

Also fix typos in TextView.

Change-Id: I58ab906b9bebe562c1a913977e2d6970bfcf3788
2010-03-08 12:21:37 -08:00
Kenneth Andersson
e3491b6b5f Title in DatePickerDialog used in Settings application not updated correctly
The DatePickerDialog in the Settings application is not updated correctly if you follow
the following step-by-step:
1. Enter Date option in settings application
2. Modify the values of the date, then cancel the changes
3. Once again enter the date option

and you can see that the title in the dialog has not been updated correctly. This is
due to a missing call to onDateChanged callback in the DatePicker class. Solution was
to add the notify call when updateTime has been called.
2010-03-06 10:04:41 +01:00
Adam Powell
cb704cd1e0 Fixed a regression setting ListView selection mode without an adapter 2010-03-05 19:51:59 -08:00
Adam Powell
8f1bfe1a7c ListView#getCheckItemIds() deprecated for ListView#getCheckedItemIds().
ListView#getCheckedItemIds() now works more reliably.
2010-03-05 18:02:38 -08:00
Romain Guy
aa516beb79 Correctly validate numbers when pasted in NumberPicker.
Bug #2258525
2010-03-05 17:33:20 -08:00
Gloria Wang
3b7991efec Merge "Release mediaplayer if the current state is not suspending. Fix for bug 2480093." 2010-03-05 10:22:04 -08:00
Gloria Wang
efb882cf75 Release mediaplayer if the current state is not suspending. Fix for bug 2480093. 2010-03-05 10:14:33 -08:00
Romain Guy
090e0f08b9 Do not select any item when the user clicks outside of the list content.
Bug #2485544
2010-03-04 18:29:15 -08:00
Adam Powell
ca8faae6b9 Awaken ListView scroll bars for overscroll 2010-03-03 20:55:07 -08:00
Gilles Debunne
e58aa0d964 Merge "More ExpandableListView fixes to take headers into account." 2010-03-03 16:49:05 -08:00
Gilles Debunne
272f3a9474 More ExpandableListView fixes to take headers into account.
All direct calls to mConnector in ExpandableListView should convert group/child flat positions
to/from absolute flat positions (that take header count into account).
Two conversion methods were added to do that.
2010-03-03 15:55:13 -08:00
Adam Powell
d93b998c92 Fix a bug in OverScroller.setFinalX/Y 2010-03-02 18:04:43 -08:00
Adam Powell
9d5b488abe Added Scroller compatibility methods to OverScroller 2010-03-02 17:09:38 -08:00
Romain Guy
0bf88594c4 Make sure all list items know they are in a window.
Bug #2476671

If you had a ListView with a layout_height equals to WRAP_CONTENT, you would
get list children with a parent but not attached to the window. This was caused
by the onMeasure() code: that code was obtaining views from the adapter to
measure them and putting them in the recyler for later reuse. Unfortunately
the recycler assumes that views have been attached to the window but detached
from the parent, thus causing much grief. The fix simply forces measured views
to be added to the window the first time they come out of the recycler.

ListView, bow before me for I am your master!
2010-03-02 13:41:46 -08:00
Gilles Debunne
c4fc2cc47f Merge "Null pointer tests removed from HeaderViewListAdapter." 2010-03-02 11:41:49 -08:00
Gilles Debunne
176f9fc215 Null pointer tests removed from HeaderViewListAdapter.
The mHeaderViewInfos and mFooterViewInfos lists were sometimes tested for nullity
and sometimes not. Should these values be null, some conditionnal code was actually
flawed in getView() and getItem() because of too strong 'and' conditionnals.

These lists are created upon declaration in ListView and are then shared and hence
cannot be null. Null tests were hence removed. getView() and getItem() get simpler
and work as before.

Change-Id: I279e482730ce6148a559d15a9863afc8f6b67780
2010-03-02 11:00:50 -08:00
Romain Guy
42c79880b0 Apply alpha animations on ImageView instances.
Bug #2479570
2010-03-01 17:21:59 -08:00
Romain Guy
7883c975dd Prevent crash in Dialog.
Bug #2249637
2010-03-01 16:39:17 -08:00
Romain Guy
61c9d4b450 Let apps change the bottom strip in TabWidget.
Bug #2478088

Also expose a few useful APIs.
2010-03-01 14:23:23 -08:00
Gilles Debunne
52b65d39aa Take headers into account when expanding a ExpListView group.
The possible scroll that happen after expanding a group did not take the possible
existing headers into account.

Change-Id: I5dc381baa7c54580e992e26a1ed55102afcb16b0
2010-03-01 11:04:28 -08:00
Gilles Debunne
7628fbe031 Merge "Fixes for ExpandableListView with headers/footers" 2010-02-27 13:13:11 -08:00
Adam Powell
ccea766217 Merge "ListView now tries to keep the position containing focused child views on-screen." 2010-02-26 17:06:50 -08:00
Adam Powell
9bf3c12850 ListView now tries to keep the position containing focused child views on-screen. 2010-02-26 17:05:21 -08:00
Adam Powell
d43bd48fe3 FastScroller now reports scroll state changes for its associated AbsListView 2010-02-26 16:29:09 -08:00
Gilles Debunne
47ccdf3760 Fixes for ExpandableListView with headers/footers
Patches in ExpandableListView to correctly handle header/footer shifter flat positions.
Make tests added in https://android-git.corp.google.com/g/#change,42312 pass.

Change-Id: I0d7823f5ae290e855bfdfb8d33c18bd34661077c
2010-02-26 14:59:44 -08:00
Romain Guy
9b1bb81fe2 Do not detach headers and footers from the list view. 2010-02-26 14:14:13 -08:00
Romain Guy
9c3184cc16 Do not recyle headers and footers when measuring the ListView.
Bug #2461893

This was causing headers and footers to be in a wrong state after the first
recycling pass, which would cause them to be detached from the window. This
was in turn preventing invalidate operations from performing successfully.
2010-02-25 17:34:59 -08:00
Adam Powell
4bb79db462 Merge "HorizontalScrollView multitouch scroll and only grip on content AbsListView multitouch scroll and only grip on content" 2010-02-25 16:29:42 -08:00
Adam Powell
4cd47702f0 HorizontalScrollView multitouch scroll and only grip on content
AbsListView multitouch scroll and only grip on content
2010-02-25 16:05:26 -08:00
Kenny Root
2a4f254d53 Remove misleading method comment on TextView#setHint
Comment incorrectly specified that the setHint(...) methods were
deprecated and suggested instead using different methods that did not
exist.

Change-Id: I5e7a1570beb8f1cd807853c6d9de8072afa5123e
2010-02-25 15:46:55 -08:00
Romain Guy
ac68d81ce1 Merge "Prevent ProgressBar from updating itself when hidden. Bug #2470737" 2010-02-25 14:33:32 -08:00
Romain Guy
a05e8a5869 Prevent ProgressBar from updating itself when hidden.
Bug #2470737
2010-02-25 14:32:39 -08:00
Gilles Debunne
aa635db5c6 Merge "New test on ContextMenuInfo packed positions." 2010-02-25 13:49:53 -08:00
Gilles Debunne
192ab90388 New test on ContextMenuInfo packed positions.
With and without headers.
Non regression test for bug
http://b/issue?id=1778239

Change-Id: I0235528ac6f8394292bac35f2350f3d5be1e4df7
2010-02-25 13:46:50 -08:00
Romain Guy
c352090c49 Correctly handle negative margins in horizontal linear layouts.
When LinearLayout is measured in EXACTLY mode, we handle the negative margins
a bit differently. This is to support the use case of the current tab design.
2010-02-25 11:01:01 -08:00
Romain Guy
8cebbfd5fb Merge "Fix tabs." 2010-02-24 18:55:59 -08:00