Commit Graph

585 Commits

Author SHA1 Message Date
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
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
Romain Guy
6c5664ac58 Fix tabs. 2010-02-24 18:55:22 -08:00
Adam Powell
9d6e45ad92 Merge "ScrollView multiple pointer support. Fixed a bug where ScrollView wouldn't scroll if the initially tapped child ignores the down event." 2010-02-24 18:30:14 -08:00
Adam Powell
bc4e7533b9 ScrollView multiple pointer support. Fixed a bug where ScrollView
wouldn't scroll if the initially tapped child ignores the down event.
2010-02-24 18:22:08 -08:00
Romain Guy
dcc490f201 Fix the build. 2010-02-24 17:59:35 -08:00
Romain Guy
a440b002aa Prevents ListView items children to modify properties of other children.
Bug #2464502

This fix introduce a new dispatch mechanism to tell views when they are temporary
detached/reattached from/to a ListView. This is very important to remove pending
callbacks or cleanup temporary states.

This change also modifies TextView which was relying on that callback in a very
particular case: a focused EditText in a ListView. The modified code acts only
when in that case, not if onStart/FinishTemporaryDetach() is called via
dispatch*() (== recycled views in ListView.)
2010-02-24 17:15:40 -08:00
Joe Onorato
618c8f1ede Merge "Make ScrollView only do overscroll if you're grabbing the child view." 2010-02-24 16:30:00 -08:00
Joe Onorato
9f0e8eeab2 Make ScrollView only do overscroll if you're grabbing the child view. 2010-02-24 16:20:33 -08:00
The Android Open Source Project
2a399f066d am 563d3a62: merge from open-source master
Merge commit '563d3a62f3762b312a4c0a9d9af15a2333beaede'

* commit '563d3a62f3762b312a4c0a9d9af15a2333beaede':
  These changes add access to some status values in widgets listed below:
2010-02-24 11:19:12 -08:00
The Android Open Source Project
9a352305f8 merge from open-source master 2010-02-24 09:11:10 -08:00
Gloria Wang
2e1818a4d1 New API on VideoView widget to suspend/resume a session. Do not release the MediaPlayer client for video suspending/resuming. 2010-02-23 17:05:44 -08:00
Steve Zeigler
7a36788f4a These changes add access to some status values in widgets listed below:
widget/CheckedTextView.java:  report if the item is checked or not.

widget/CompoundButton.java:  report if the item is checked or not.

widget/ProgressBar.java:  isIndeterminate(), getProgress(), getSecondaryProgress(), and getMax() report what
sliders and progress bars are showing

widget/TextView.java: report the current selection:  getSelectionStart() and getSelectionEnd()
2010-02-23 16:39:08 -08:00
Romain Guy
afc0155718 Prevent crash in AbsSpinner when the selection is out of sync.
Bug #196253

Also do a little bit of syntax cleanup, remove unused code, etc.
2010-02-22 16:48:47 -08:00
Adam Powell
ab3e105282 Don't switch layout modes in AbsListView#onTouchModeChanged()
Don't stomp mResurrectToPosition for LAYOUT_SPECIFIC in AbsListView#hideSelector()
2010-02-22 11:22:31 -08:00
Adam Powell
1f09c83147 Spinner now allows disabled adapter items 2010-02-19 12:01:57 -08:00
Adam Powell
d7507834e7 Don't cache mFirstPosition before a layoutChildren in ListView.onFocusChanged 2010-02-18 15:40:33 -08:00
Gilles Debunne
d651629478 Merge "List.GetCheckItemIds no longer includes unchecked items." 2010-02-18 10:26:34 -08:00
Gilles Debunne
fd3ddfa6f0 List.GetCheckItemIds no longer includes unchecked items.
Unchecked items remain in the mCheckStates with an associated false value.
Now filtered out.

Added a unit test to ensure non regression.

Change-Id: If0b1a38aa06881055c87a97b3afb2c7fb48656f1
http://b/issue?id=2440815
2010-02-18 10:24:09 -08:00
Adam Powell
c6a0a9cb67 Merge "Don't move the fast scroll thumb with a list on overscroll." 2010-02-17 15:16:08 -08:00
Jeff Sharkey
2b95c24138 Added more @RemotableViewMethod methods, mutate ImageView.
Catch some View methods missed during the first pass of
marking with @RemotableViewMethod annotation.  Also adds new
ImageView.setColorFilter(int) to match the android:tint XML
attribute.

When ImageView touches ColorFilter or alpha, mutate the
underlying Drawable. Fix NPE in StateListDrawable.mutate().
2010-02-17 15:03:32 -08:00
Adam Powell
7fd28847f1 Don't move the fast scroll thumb with a list on overscroll. 2010-02-17 14:34:21 -08:00
Adam Powell
c9fbaabc1b XML attribute for overscrolling behavior 2010-02-17 11:47:00 -08:00
Adam Powell
a2f9101684 Fix for [Horizontal]ScrollView scroll range reporting 2010-02-16 12:26:33 -08:00
Adam Powell
70bc217703 Merge "Added proper overscrolling scroll bar behavior to GridView" 2010-02-16 10:13:52 -08:00
Gilles Debunne
f5c6eff63d Force layout on TableRows when column widths are shrinked or streched.
Also features some comment typos and import re-ordering.

Change-Id: I32cb14419d7d349064032718469daf62a0a72e3a
2010-02-12 15:57:12 -08:00
Adam Powell
f2a204e792 Added proper overscrolling scroll bar behavior to GridView 2010-02-12 15:54:59 -08:00
Gilles Debunne
a10b48d5a5 Merge "Closed tabs removed from layout." 2010-02-12 15:50:05 -08:00
Adam Powell
0b8bb4282a Overscrolling modifications. Overscroll will not allow the user to
scroll content out of view. Scrolling will slow down halfway to the
barrier point. API added in View. AbsListView, ScrollView,
HorizontalScrollView all use this API. Overscrolling uses haptic
feedback. Added scroll barrier pattern to config.xml.
2010-02-12 10:26:25 -08:00
Gilles Debunne
ce2baf0d57 Closed tabs removed from layout.
TabHost sets closed tabs visibility to GONE instead of INVISIBLE, so that they are no
longer considered by the layout.

Change-Id: I74efea13d43e3c7ce21476c7bbcb3bb1cca8bf29
2010-02-10 15:19:14 -08:00
Eric Fischer
5fe1e6221e Make the Date Picker fields more consistent in locales with numeric months.
In locales that use month numbers instead of names, use *just* the number
instead of also the word for month to be consistent with the other fields,
which also show just a number instead of a number plus the word for day
or year.

Bug 2289276
2010-02-09 15:58:50 -08:00
Romain Guy
498b2960d5 Always remember the last touch mode state when touch mode changes.
Do not just rely on getting an onWindowFocusChanged() event. There are cases
where we might not get it (view removed from the window for instance.)
2010-02-08 14:58:01 -08:00
Adam Powell
4580347998 ListView updates. Fixed several overscrolling bugs. Added programmatic
scrolling to ListView. Added auto-scrolling to show expanded content
for ExpandableListView. Fixed an AbsListView recycler bug where
offscreen views would stick around in the view hierarchy.

Addresses bugs 1161597 and 1119429.
2010-02-05 17:57:41 -08:00
Romain Guy
8186ae5a96 Merge "Do not let negative margins reduce the size of the LinearLayout." 2010-02-05 15:35:10 -08:00
Romain Guy
053b48051a Do not let negative margins reduce the size of the LinearLayout. 2010-02-05 15:34:33 -08:00
Paul Westbrook
7722abe259 Bug 2420366
Rehide NumberPicker widget
2010-02-05 09:31:38 -08:00
Adam Powell
eb6b1fa7b8 Fixed an overscrolling bug in AbsListView with a root in OverScroller. 2010-02-03 16:41:07 -08:00
Marco Nelissen
cd3e4ad4fb Fix fastscroll thumb 2010-02-03 11:04:58 -08:00
Marco Nelissen
d43fe07852 Make the fastscroll thumb tell the parent to not intercept touch events,
to keep the list from moving sideways in a "workspace" environment.
Fixes one of the issues listed in bug 2374212
2010-02-03 10:42:33 -08:00
Joe Onorato
1f9a3cc338 Merge "Fix bug 2389454 - DateTimeView can NPE if "date_format" isn't set in Settings." 2010-02-01 15:15:19 -08:00
Joe Onorato
7747210426 Fix bug 2389454 - DateTimeView can NPE if "date_format" isn't set in Settings. 2010-02-01 18:14:15 -05:00
Romain Guy
2456248712 Do not reshow the filter popup after hiding it.
This was causing the popup to show after moving a list out of the screen in
the new music app.
2010-02-01 14:58:06 -08:00
Adam Powell
79ac3395b5 Overscrolling in AbsListView; visibility cleanup for FlingRunnable 2010-02-01 14:19:31 -08:00
Adam Powell
f54460576e Don't bounce programmatic scrolls of ScrollView and HorizontalScrollView. 2010-01-28 17:25:29 -08:00
Adam Powell
4d3cef348b Merge "ScrollView and HorizontalScrollView now will spring back if smoothScrollBy scrolls out of bounds. Tweaked bounce physics for OverScroller." 2010-01-28 14:03:15 -08:00