Commit Graph

4498 Commits

Author SHA1 Message Date
Craig Stout
9eef3f4fb9 NumberPicker fixes for Android TV.
Fixed stuck dpad navigation when end of range is reached.
Adds theme attribute 'hideWheelUntilFocused'.

b/15194230

Change-Id: I9a77c6ad29a1fd930a8920d9944ad1eb15ca6b96
2014-07-08 00:10:05 +00:00
Adam Powell
032fb0a2a2 Merge "Avoid texture path drawing for EdgeEffect" 2014-07-02 18:55:10 +00:00
Adam Powell
ccb2466b5d Avoid texture path drawing for EdgeEffect
Make sure we stay on tesselated geometry code paths instead of texture
generation.

Bug 16131698

Change-Id: I6b934e718e1d3c5164a8ede71b1240ce761eaf71
2014-07-07 16:24:13 -07:00
Craig Stout
59c7b4b04f TimePickerDialog does not force new ui on TV.
Add support for done button in LegacyTimePickerDelegate.
Provide leanback themed legacy time picker layout with buttons
on the side.

b/15194230

Change-Id: Ie05c1cf45b334e9642095d63c682aba314ff3c6b
2014-07-07 23:08:11 +00:00
Adam Powell
aab726c53e Fix consistency in nested pre-scroll with ScrollView for AbsListView
Keep sign consistency for nested pre-scroll dispatch in AbsListView
with ScrollView. Also correctly invoke nested flings.

Bug 16015770

Change-Id: Ia8a82667ea548aafda66f04e32046c3b0a5c2314
2014-07-07 15:29:13 -07:00
Alan Viverette
fccbff5f02 Add API on AccessibilityNodeInfo for retrieving TextView error
BUG: 11155198
Change-Id: Ie01b92e1071ff584b360cfa3ece4320ad05e4aae
2014-07-07 15:06:14 -07:00
Craig Stout
f209ef9c3a Fix TextView drawing issue.
The predraw listener was lost because the view was detached and reattached
after layout but before the first draw.

b/15376022

Change-Id: Idf38f7373df3c457f54b6e3f995b00256914f775
2014-07-07 17:43:52 +00:00
Brian Duff
f8d4602c9b am 51d70ce9: am c542745e: am a6e9dd3f: Merge "Fix a typo in NumberPicker javadoc."
* commit '51d70ce9b8dbbcb7f354c87b722efe84b2a62a28':
  Fix a typo in NumberPicker javadoc.
2014-07-03 09:49:24 +00:00
Brian Duff
51d70ce9b8 am c542745e: am a6e9dd3f: Merge "Fix a typo in NumberPicker javadoc."
* commit 'c542745e23fe9d2e71c1f607d66f5570f585133d':
  Fix a typo in NumberPicker javadoc.
2014-07-03 09:43:56 +00:00
Brian Duff
a6e9dd3f9a Merge "Fix a typo in NumberPicker javadoc." 2014-07-02 20:51:20 +00:00
Alan Viverette
5dddb70b4e Add style for SearchView
BUG: 6420978
Change-Id: I31d9f7e66c2404388ccbe6d2e43a005deb0b7c25
2014-07-02 15:59:30 -07:00
Adam Powell
b3e411458c Fix a copy/paste bug in Toolbar.
Bug 15868762

Change-Id: Ie2a0c492f9d7baa05d520cd2fee652245ab4b61b
2014-07-01 17:42:34 -07:00
Alan Viverette
d361a4f98b Use touch hotspot in drag-to-open, fix forwarding cancellation
BUG: 14230395
Change-Id: Ibea615bcd6a2e57fca8b49ffea23f0df951d497c
2014-07-01 23:16:49 +00:00
Adam Powell
d76008352e Remove ActionBar.LayoutParams MarginLayoutParams constructor
Adding this for L caused some fun issues with source compatibility.
Apps that previously passed another MarginLayoutParams subclass to
ActionBar.LayoutParams' constructor started statically linking to a
constructor overload that did not exist on older platform changes with
no other source changes. In the interests of avoiding these headaches
for developers, remove it.

Bug 15933193

Change-Id: I01cf8dfa2341b9d9629331639433b59352e7e15a
2014-07-01 15:39:28 -07:00
Jorim Jaggi
3aa422033a Fix jank in TextView.Marquee
Use Choreographer animation callbacks to update the scrolling and
make the delta dependent on the time passed since the last update.

Change-Id: If6ce365014e8d32dadfc93bba0d4733050f673f7
2014-07-01 20:15:01 +02:00
Alan Viverette
d87c7767d9 Merge "Fix NPE in AbsListView hotspot management" 2014-06-30 22:33:05 +00:00
Alan Viverette
8390fab6f4 Fix NPE in AbsListView hotspot management
BUG: 15989761
Change-Id: I1c2fc2ddf3128bf3ba4aa7d986899193559b0c76
2014-06-30 16:03:43 -07:00
Chet Haase
6c8fef7fb8 Avoid null-deref crashes in ScrollBarDrawable
Some of the code in ScrollBarDrawable automatically derefs
the horizontal and/or vertical thumb objects. The drawable can
sometimes be in a state where these objects are null, causing
a null deref. This fix simply avoids dereferencing null objects.

Also, fixed doc bug in attrs.xml for Transition tags.

Issue #13210554 Transition style documentation refers to 'move' instead of 'changeBounds'
Issue #15636059 ScrollBarDrawable crashes in setAlpha() and other methods when thumbs are null

Change-Id: I6664ba17dae0845de8a8658381ae6e9c9ef99214
2014-06-30 14:15:03 -07:00
Yohei Yukawa
5d6b6f2892 Allow TextInfo to store ParcelableSpans for TextService
This CL adds a new constructor of TextService so that spell
parcelable spans can be preserved in TextInfo.  The primary usage
scenario is to provide locale information for spell checker
service.

BUG: 15869548
Change-Id: Ib58ece68dee4c6187d469049fca8c35a307c7a01
2014-06-30 09:42:18 +09:00
Alan Viverette
abda548088 Fix unsafe public methods that take TypedArray
BUG: 15782973
Change-Id: Ifeb032976cd20cf25fe7ecea83eab9d71a16ebc3
2014-06-27 23:11:55 +00:00
George Mount
31e8005e06 Merge "Don't use overlay to transition ImageViews." 2014-06-27 15:56:14 +00:00
George Mount
990205eada Don't use overlay to transition ImageViews.
Bug 15744992

MoveImage used an overlay to transition ImageViews. This
caused strange problems when ImageViews were contained in
other Views. The new ChangeImageTransform does a smooth
transition for changes in scale type and bounds.

Change-Id: Ia5021f4828f8f818a8699b3bdd38437aeba1cfc8
2014-06-25 13:45:16 -07:00
Adam Powell
7901b2a549 Set the default content description for Toolbars acting as action bars
Bug 15814044

Change-Id: I07c20de1349cb07f21eaf0db718da94c0ba7043d
2014-06-24 17:32:06 -07:00
Adam Powell
1a264ce3d9 Add Toolbar methods to set title text colors
Bug 15836670

Change-Id: If62da4104853c772790597be44f7a1efde2505ef
2014-06-23 18:16:44 -07:00
Brian Attwell
a279918c5b Add EdgeEffect#setColor
Bug: 15725269
Change-Id: Ifdb0a53d1f17e2433683e51d09588545b69e6238
2014-06-24 00:04:05 +00:00
Adam Powell
287c036187 Compatibility shim for apps calling View methods with TypedArray params
Apps calling the View methods that accept TypedArray params have
always been wrong. There is no way to call these methods safely since
apps can't get at the correct filter array assumed in these methods'
implementations. Do the best we can with these calls anyway; ignore
whatever they did pass and just get the styled attributes from the
Context used to construct the view and its associated theme.

Bug 15792674

Change-Id: I6dfa1abf273b581e79a17a72f68c97ff9a9148c5
2014-06-23 15:18:28 -07:00
Chris Craik
a7090e0cfd Update 'DisplayList' vs 'RenderNode' naming in several places
Change-Id: I635c6627d098b661fb9b0ba1bd42fa6d7277d287
2014-06-23 09:57:07 -07:00
John Spurlock
e599488968 If we're not showing switch text, don't include in measure.
Naive fix for switch crashes when !showText.

Bug:15770311
Change-Id: I68839b61b907d62159e2c12349005683e9ac6436
2014-06-20 10:53:54 -04:00
Alan Viverette
2a37cf8d76 Don't show text in Material-styled switch
BUG: 15754341
Change-Id: Iae43b31c6e445207a0c95b48d0f0befac0f5cc78
2014-06-19 17:09:10 -07:00
Jeff Sharkey
b9a45aae8d am 447b68e7: am b5e05cff: Merge "Fixing parcel leaks to avoid virtual memory leak"
* commit '447b68e767943fdde297d78321378e2623985a0a':
  Fixing parcel leaks to avoid virtual memory leak
2014-06-19 16:11:51 +00:00
Maunik Shah
db1a9a3862 Fixing parcel leaks to avoid virtual memory leak
Client has to call recycle() on parcel object after its usage
otherwise native layer of binder won't clear the resources of
parcel which were allocated for IPC

Change-Id: Ib31ddcc92aa4ebd80bb66729922b9133692e9c9e
2014-06-19 19:44:21 +05:30
Alan Viverette
e3c433aa45 Persist selector on ListView and GridView layout
BUG: 15472031
Change-Id: I0d10be3e0cf8a4d7580bd834e432c1c15fc481f5
2014-06-19 14:36:59 -07:00
Jeff Sharkey
65dfc83cef am b9a45aae: am 447b68e7: am b5e05cff: Merge "Fixing parcel leaks to avoid virtual memory leak"
* commit 'b9a45aae8d07e7a92806b53cbc36f5488e3bac2d':
  Fixing parcel leaks to avoid virtual memory leak
2014-06-19 16:17:03 +00:00
Alan Viverette
88dc8f1e41 Merge "Fix clamped starting position, seek bar hotspot bounds" 2014-06-18 18:28:24 +00:00
Alan Viverette
304624100b Fix clamped starting position, seek bar hotspot bounds
BUG: 15720430
Change-Id: I11d40c747ea1a3665e9e2058d95dda1bc8a547ab
2014-06-18 17:54:58 -07:00
Alan Viverette
8de1494557 Fix switch & slider anim, make View drawable hotspot API public
BUG: 15287810
Change-Id: Ic7a9549dc1ba8afd07e9a196371ed349a54aaf2f
2014-06-18 18:05:15 -07:00
Alan Viverette
d52697784f Throw exception when a bad adapter is passed to Spinner
BUG: 13570583
Change-Id: Ia38fa907bad7634f79d0da15b885905de23c9c46
2014-06-17 16:43:45 -07:00
Alan Viverette
911743652b Add attributes and accessors for tinting View drawables
Also cleans up handling in setters for managed drawables.

BUG: 15391544
Change-Id: Idc08f7eaea0050feb6403566985a6d58185b81f8
2014-06-17 14:51:45 -07:00
Raph Levien
466cd7a2a6 Merge "Clean up dirFlags / bidiFlags confusion" 2014-06-16 22:12:26 +00:00
Raph Levien
051910b9f9 Clean up dirFlags / bidiFlags confusion
The dirFlags and bidiFlags enums are distinct, and have different
meanings. The former is a determined direction for a run of text, while
the latter is a request for the bidi algorithm. They have been used
interchangeably, and this has caused some problems, notably running the
bidi algorithm needlessly when the direction for a run is already
determined.

This patch cleans up the confusion, by always naming each occurrence
explicitly "boolean isRtl" or "int bidiFlags" (the previous code often
just used "int flags", which added to the confusion), and converts
between the meanings when a function takes an isRtl argument but passes
it to another function expecting bidiFlags.

Fixes b/15089607 Clean up bidi flag mess

Change-Id: I410b6604376e853dd12c255e7f5a9d2b9a310dd9
2014-06-16 14:36:08 -07:00
Adam Powell
206c6e85ab Add TextView#set/getShowSoftInputOnFocus
These APIs allow an application to suppress the default editable
TextView focus gain behavior of displaying the IME. Useful in cases
where an app provides an alternate way of entering content, such as a
dialpad or calculator pad.

Bug 11540727

Change-Id: I1abd98db6e1522a9655a42b6ee712f50a962ea00
2014-06-16 12:57:16 -07:00
Chong Zhang
90c91c2adf Merge "support for CEA-608 closed caption" 2014-06-12 17:09:07 +00:00
Chong Zhang
bdfd910247 support for CEA-608 closed caption
Bug: 15470448
Change-Id: Ic6a527f5c35a8ee0a08a5b043336e4d193216083
2014-06-11 17:57:23 -07:00
Alan Viverette
cebc6bab51 Support hotspots in View drawables
BUG: 15285217
Change-Id: Iad44454fe16ac27ed20b9c17ae2df69649339eed
2014-06-13 15:52:13 -07:00
Jean Chalard
11abbdcb78 am 7d8b87f0: Merge "Fix a CTS test" into lmp-preview-dev
* commit '7d8b87f0d9b35694099d5f57777d27f577496960':
  Fix a CTS test
2014-06-12 19:58:08 +00:00
Yohei Yukawa
2a97b54f49 am f09cb58d: Merge "Rename CursorAnchorInfoBuilder with Builder" into lmp-preview-dev
* commit 'f09cb58d5f528665e6e96d8740eeeeab4167e357':
  Rename CursorAnchorInfoBuilder with Builder
2014-06-12 19:58:02 +00:00
Adam Powell
c78f2f7fea am 22e41e9a: Merge "Enable collapsing empty Toolbar-based ActionBars above tabs" into lmp-preview-dev
* commit '22e41e9add1aeb0c8a79741f587c270752a50d16':
  Enable collapsing empty Toolbar-based ActionBars above tabs
2014-06-12 19:57:42 +00:00
Adam Powell
360c1d8922 Enable collapsing empty Toolbar-based ActionBars above tabs
Fixes a regression where Toolbar ActionBars would hold empty space
when previous platform versions would collapse to tabs-only.

Bug 15573337

Change-Id: I6da379d2ed58e8ba8cadcd727606c7fc160ecf91
2014-06-11 19:31:41 -07:00
Yohei Yukawa
13592c623c Merge "Rename CursorAnchorInfoBuilder with Builder" into lmp-preview-dev 2014-06-10 22:36:02 +00:00
Jean Chalard
1f3bb8477b Merge "Fix a CTS test" into lmp-preview-dev 2014-06-10 22:29:12 +00:00