Commit Graph

652 Commits

Author SHA1 Message Date
Gilles Debunne
52964243dc New OverScroller with edge bouncing effect.
OverScroller has been made a Scroller child class. Both use a physical constant deceleration
force to compute the animation. OverScroller also includes a rubber edge bounce effect.

Approved by Jim Palmer.

Change-Id: I3f43a03694b8cb6bfa0784c2663b37c9c39322cc
2010-03-19 12:23:09 -07:00
Kenny Root
415b46c32b Merge "Ensure adapter is not null in AutoCompleteTextView" 2010-03-19 11:59:56 -07:00
Gilles Debunne
8340afe0f6 New HeterogeneousExpandableList interface.
This interface can be used in conjunction with ExpandableListAdapter to
declare more types of child and/or group views.

None of the ExpandableListAdapter implementations is heterogeneous in the
framework. BaseExpandableListAdapter was decalred to use this interface so that users
see the methods and can overload. DateSortedExpandableListAdapter was left unchanged.

This feature is related to http://b/issue?id=1459940

Change-Id: Ifc589b697913778b16abfdcaaa9f8f81e564add7
2010-03-19 11:15:49 -07:00
Kenny Root
7254afd4c2 Ensure adapter is not null in AutoCompleteTextView
A runnable is posted for AutoCompleteTextView's PopupDataSetObserver, but
there's a possibility that mAdapter would be set to null between when
the runnable is run and the time it is posted.

This fixes a monkey crash seen in build 29176.

Change-Id: Ie7be51db580d6e9775533890e5f6902409bec84d
MonkeyCrashID: 2071507494::1632:123:521
2010-03-19 10:15:29 -07:00
Gloria Wang
b127bf2e9c Merge "Release MediaPlayer if suspend() returns false." 2010-03-18 15:59:35 -07:00
Gloria Wang
047212fd4e Release MediaPlayer if suspend() returns false.
Change-Id: Ic6467a19bac453b72b56294487c9b835b20affd7
2010-03-18 15:44:30 -07:00
Adam Powell
8a836a8b98 Eliminate haptic feedback when hitting an overscroll barrier due to a fling.
Change-Id: I434ec3edd95a19677ad9dbd1ac5ca3f3f5d091cb
2010-03-17 20:33:07 -07:00
Adam Powell
f43eab142d Merge "Make AbsListViews remeasure children after rotation" 2010-03-17 18:33:18 -07:00
Adam Powell
f3c2edaa21 Make AbsListViews remeasure children after rotation
Fixes issues in Settings and other places where TextView separators
aren't resized properly after a rotation

Change-Id: Id5c53d4c5e6621e79e723ec2c300c8a43f12e379
2010-03-17 17:50:47 -07:00
Romain Guy
a15f4a46ad Merge "Prevent crash when dismissing a PopupWindow that didn't have time to show up. Bug #2520981" 2010-03-17 15:29:21 -07:00
Romain Guy
92be82e6a8 Prevent crash when dismissing a PopupWindow that didn't have time to show up.
Bug #2520981

This is very similar to recent crashes we fixed in Dialogs.

Change-Id: Ifd85f05ddc3843ef727ca92808568a5520c83107
2010-03-17 15:16:21 -07:00
Romain Guy
8dd9b6053c Merge "Fix centering in FrameLayout when margins are specified." 2010-03-17 12:45:39 -07:00
Romain Guy
b954a54350 Fix centering in FrameLayout when margins are specified.
Change-Id: I022f458c73967eacc9487bf8d8119999395efda9
2010-03-17 12:45:10 -07:00
Romain Guy
11d5bfde84 Fix NPE in AutoCompleteTextView to tame the monkeys.
Bug #2522599

Change-Id: I85654898399e5329585fb6aa5f3890ca4c22e2bf
2010-03-17 11:08:17 -07:00
Romain Guy
4f43ae09d2 Stupid AutoCompleteTextView.
Bug #2522538

Fixes problems that occur in the Email application. If the adapter is initially empty,
the code in the data set observer to update the popup would not show the popup. This
change makes sure the popup will be shown if the adapter was initially empty and the
user has typed enough characters in the input field.

Change-Id: I44a0e4fab18a642763816a974b8c1886d8e52869
2010-03-17 10:39:04 -07:00
Romain Guy
6a67810228 Resize AutoCompleteTextView's dropdown when the list content changes.
Bug #2517711

Change-Id: Ibd4a9458d517063483712a60fb6d6b63311bbd0c
2010-03-16 13:49:31 -07:00
Romain Guy
82ce6f1c8e Merge "Round up ImageView translations to avoid nasty surprises. Bug #2499812" 2010-03-15 17:55:07 -07:00
Romain Guy
b4938201ba Round up ImageView translations to avoid nasty surprises.
Bug #2499812

Change-Id: If90acb7e13aa30e5a0a4e73782d033a5bb4e3264
2010-03-15 17:53:37 -07:00
Romain Guy
88f183eb4b Merge "Correctly handle disabled list items in AutoCompleteTextView. Bug #2516659" 2010-03-15 17:19:34 -07:00
Romain Guy
2beee4d110 Correctly handle disabled list items in AutoCompleteTextView.
Bug #2516659

Change-Id: If51dfbfff27777476e799030e2326e964ee74f42
2010-03-15 17:18:22 -07:00
Adam Powell
c5014294a0 Fix bug 2516434
AbsListView shouldn't update mLastTouchMode in onTouchModeChanged;
it's only used in onWindowFocusChanged and since onTouchModeChanged
gets called first, the current and last modes will never be different
to trigger the right code path.

Change-Id: Ic9bc454c87826622df54417801fd8f13213c480e
2010-03-15 16:03:10 -07:00
Adam Powell
51a6bee671 Fix bugs when transitioning out of touch mode
Change-Id: I56cbac17fba500871af839a87d746ea8e1fd5d0f
2010-03-15 14:07:28 -07:00
Amith Yamasani
e1748c6714 Merge "Fix for 2175289 : Can't get keyboard in search dialog after switching to landscape" 2010-03-12 06:47:00 -08:00
Adam Powell
2a20ddd90b Tame some monkeys
Change-Id: I1bdcd466d6bacb0cebdd6bb0b5339477c2c284b0
2010-03-11 18:09:59 -08:00
Amith Yamasani
d25eb35b6b Fix for 2175289 : Can't get keyboard in search dialog after switching to landscape
The auto complete drop down was obscuring the keyboard. This fix checks if the
screen is in landscape mode and forces the keyboard in front when necessary.
2010-03-11 16:05:17 -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