Alan Viverette
06cd7dce24
Forward additional drawable methods in AVD
...
BUG: 17156349
Change-Id: I1d7b41fc8d0399b31db4cf21aa47180e96bfbcfe
2014-08-20 13:44:44 -07:00
Chris Craik
aba9715ae7
Merge "Make getOutline account for gravity BitmapDrawable" into lmp-dev
2014-08-19 22:53:25 +00:00
Chris Craik
fe7a18eead
Make getOutline account for gravity BitmapDrawable
...
bug:17112454
Also cleans up several subtle bugs in updating gravity/tile mode/insets.
Change-Id: Idbd2c52e5f572d11b651f5e93d000535880f5708
2014-08-19 17:44:20 -07:00
Chris Craik
13600f9ed4
Merge "Don't cast shadows from gradients with transparent parts" into lmp-dev
2014-08-19 15:47:37 +00:00
Chris Craik
c49e3ce6c6
Don't cast shadows from gradients with transparent parts
...
bug:17070982
Change-Id: I607dd3c9397845fce53b7f097ec0b57246077ea1
2014-08-19 11:11:11 -07:00
Alan Viverette
b19fe38840
Merge "Update toggle switch asset to include content area" into lmp-dev
2014-08-19 22:53:25 +00:00
Alan Viverette
a5e1301bf5
Update toggle switch asset to include content area
...
Remove optical bounds workaround from NinePatchDrawable, which was
incorrect anyway since we were missing a content area rather than
missing padding.
BUG: 17114103
Change-Id: I51461be666f59534dfdea7ab79bc867ee3eb3c92
2014-08-19 16:55:47 -07:00
Chris Craik
d1d7389880
Update setShadowLayer doc
...
bug:17134528
Change-Id: I436bb0163b18d0b88954bf9dac16e51d14a533eb
2014-08-19 22:40:41 +00:00
Alan Viverette
04019ee91b
Merge "Throw exception when inset drawable is missing drawable attribute" into lmp-dev
2014-08-18 21:31:41 +00:00
Chet Haase
32e966ccb3
Merge "Fix crash in AnimationDrawable" into lmp-dev
2014-08-18 21:31:41 +00:00
Chet Haase
030435773d
Fix crash in AnimationDrawable
...
When a drawable becomes invisible, it unschedule itself, which
sets mCurrentFrame to -1. Later, when it becomes visible, it
calls setFrame() with either 0 (if 'restart' is true) or
mCurrentFrame. Calling setFrame() with a value of -1 causes a crash
later as we dereference an invalid location in the state durations
array.
This fix also checks mCurrentFrame and calls setFrame with 0 when the
current frame is invalid. This takes the code back closer to what it
used to be when setFrame was always called with 0, although now it will
use a valid frame when it is set.
Issue #16489419 Google Translate crashes whenever hitting done button on keyboard to get translation result.
Change-Id: I1f5b8672d209017aa8a4eaa15bd7ddd2f3ae38d1
2014-08-18 10:33:58 -07:00
Chris Craik
9745de0f05
Fix BitmapDrawable outline crash
...
bug:17103753
Change-Id: Ia3d2c7d61b3f3b9ea8879f941d726d8627e155bb
2014-08-18 11:32:13 -07:00
Alan Viverette
0bece71ee2
Throw exception when inset drawable is missing drawable attribute
...
BUG: 17068252
Change-Id: I3f5757966c1bb723311a2e2c41d419ed41369061
2014-08-15 19:12:28 -07:00
Jeff Brown
c13ff2e4f5
Merge "Revert "Throw exception when inset drawable is missing drawable attribute"" into lmp-dev
2014-08-15 21:23:40 +00:00
Jeff Brown
2e1c9b517e
Revert "Throw exception when inset drawable is missing drawable attribute"
...
This reverts commit b16a6331cce2c3559ed9414c6aca238c5042e919.
Bug: 17072675
Change-Id: Ie2403095df10aa0dd18545a3d2a323ae463037e4
2014-08-16 02:06:16 +00:00
Alan Viverette
0a9614f5fb
Throw exception when inset drawable is missing drawable attribute
...
BUG: 17068252
Change-Id: Id9c9791501ce9d56fdd67236c84775550c89032c
2014-08-15 14:28:30 -07:00
Alan Viverette
7ca0bb5d4d
Merge "Better handling of unresolved theme attributes" into lmp-dev
2014-08-15 21:23:40 +00:00
Alan Viverette
34a14f967a
Better handling of unresolved theme attributes
...
Also adds a (very obviously wrong) default color to RippleDrawable
Change-Id: I6d29b371f4e59accbebf25eb059b1f372b9184b0
2014-08-15 17:15:39 -07:00
Alan Viverette
cf8f58350b
Merge "Throw exception when inset drawable is missing drawable attribute" into lmp-dev
2014-08-15 21:23:40 +00:00
Chet Haase
a4888fbac9
Merge "Minor doc fixes from API council recommendations." into lmp-dev
2014-08-15 08:11:59 +00:00
Chet Haase
6beeb75723
Minor doc fixes from API council recommendations.
...
Issue #17008236 API review: android.graphics
Change-Id: I171d376b642707858198d8a1379c732fcfcab4dd
2014-08-15 11:14:48 -07:00
Chris Craik
e222e359a0
Disable shadow casting for transparent BitmapDrawables
...
bug:17013977
Change-Id: I26328c21360432bb34d3f19858dfdc0e6aede057
2014-08-15 00:57:52 +00:00
Alan Viverette
03d30a573b
Make sure we're obtaining themed drawables correctly
...
Change-Id: I446a3492f7bf5a897c5d698e61327af4b7840d85
2014-08-14 19:59:50 +00:00
Raph Levien
e07465fafd
Merge "Resolve invalid Typeface style to default" into lmp-dev
2014-08-13 01:30:28 +00:00
Alan Viverette
2adf8902ce
Merge "Prevent re-entry when clearing animating hotspots" into lmp-dev
2014-08-12 23:14:35 +00:00
Alan Viverette
27cede8777
Prevent re-entry when clearing animating hotspots
...
BUG: 16651728
Change-Id: I2b1b1501a4adfded833d0ed95ec3537ae217a6d7
2014-08-12 15:03:01 -07:00
Alan Viverette
1725f94124
Merge "Fix NPE in NinePatchDrawable, propagate theme in StateListDrawable" into lmp-dev
2014-08-12 19:31:43 +00:00
Alan Viverette
ad55abdc74
Fix NPE in NinePatchDrawable, propagate theme in StateListDrawable
...
BUG: 16979150
BUG: 16957778
Change-Id: I5e7116fe7fd3d5d177bafa88aad08ab21ae1677d
2014-08-12 11:16:01 -07:00
Raph Levien
ff86bcd088
Resolve invalid Typeface style to default
...
Setting a textAppearance that specified a fontFamily but not a textStyle
results in a styleIndex of -1 being passed to the Typeface.create()
call. This patch resolves such invalid style indices to the default.
Fix for bug 16880318 "Applying TextAppearance To TextView with custom
font family incorrectly adds italics style on LMP"
Change-Id: I05c9cfc4d76161be21b58abdb4037c51a23cae37
2014-08-11 14:26:37 -07:00
ztenghui
0670f029a4
VD: Fix Canvas save leak
...
bug:16965998
Change-Id: I367388b270748e2ce114b468940966d78de07465
2014-08-12 10:35:49 -07:00
ztenghui
6661341596
Don't double count the left/top when using bitmap cache in VectorDrawable.
...
bug:16861184
Change-Id: I0530602957a434b222725b6fcbc1af165ee05835
2014-08-11 10:16:22 -07:00
Alan Viverette
dbcbca4475
Don't make ripples respond to selection state
...
Also exports view pressed state for hierarchyviewer.
BUG: 16622634
Change-Id: I754428dd1d59f3b7450b01976a73d5151d27152e
2014-08-08 12:23:41 -07:00
Raph Levien
e272a26de1
Make letterSpacing and fontFeatureSettings public
...
We added APIs and TextView xml attributes to give access to letter
spacing and OpenType features. This patch makes these changes part of
the public API.
Bug: 15246510
Bug: 15594400
Change-Id: I7a54cb0da2746304a5c72a687612a279cac652e0
2014-08-07 18:37:16 -07:00
Alan Viverette
4afbbfd547
Add insets to dialog background
...
Also adds inset attribute to InsetDrawable to control all four insets.
BUG: 16868069
Change-Id: I909d05a6dc69747e9092e9ac34551b18d70d2b9f
2014-08-08 01:06:26 +00:00
ztenghui
f143ae8ffe
Removing fill and stroke opacity
...
bug:16850076
attrs/public.xml update will be separated for build break friday.
Change-Id: I5863193d5fecd7e210bd6db5294868f1a70e0d2f
2014-08-07 22:48:46 +00:00
Alan Viverette
f9b4c2cc6f
Merge "Fix CTS test for nine patch padding sanity check" into lmp-dev
2014-08-06 23:49:20 +00:00
Alan Viverette
ac1f5884fb
Fix CTS test for nine patch padding sanity check
...
BUG: 16826969
Change-Id: I96628a38300dec58eb8523559741c28fed35eba2
2014-08-07 13:55:26 -07:00
Alan Viverette
036a66596d
Add an extra pixel to the ripple radius used for bounds
...
BUG: 16850241
Change-Id: I0f3a046100c104a6321ca7eb24cd0295878e4f47
2014-08-07 13:00:03 -07:00
Alan Viverette
b1de5a59be
Merge "Separate tint and tintMode properties" into lmp-dev
2014-08-06 17:19:40 +00:00
Chris Craik
af046ab637
Update radial gradient doc
...
bug:16838331
Clarify positions parameter, and naming of several others.
Change-Id: I6096d26deaada717b52d924cd53e852b3c31626f
2014-08-06 23:25:09 +00:00
Alan Viverette
a426445dfd
Separate tint and tintMode properties
...
BUG: 16054922
Change-Id: I820fb857b671faf9eb27612e470e820c5c4cd6b5
2014-08-06 15:42:10 -07:00
ztenghui
33559c96ad
Merge "MiterLimit represent a ratio itself, no need to scale" into lmp-dev
2014-08-06 17:19:40 +00:00
ztenghui
c4d651ec8a
MiterLimit represent a ratio itself, no need to scale
...
Change-Id: I474d8c29fc28786c6b3ff88848c1c802ab76d77c
2014-08-06 20:07:04 +00:00
ztenghui
06eaf193bd
End the animator when stop() is called
...
bug:16830053
Change-Id: If27ba904b0f78ee8c59df3522a97f5f86509ca0e
2014-08-06 21:23:08 +00:00
Chris Craik
01af516a87
Fix nine patch crash
...
bug:15598400
Prevent destroying a NULL chunk
Change-Id: Iea0ac5311ca8061f60c02669cd9b87eededf1b1d
2014-08-06 16:44:47 +00:00
John Reck
0df3bd5594
Add Bitmap.compress to TRACE_TAG_RESOURCES
...
Bug: 16800719
TRACE_TAG_RESOURCES shows bitmap decoding, have it show
compressing as well
Change-Id: I04f62545be52698de5371a2594973fa336e7b2fa
2014-08-05 21:00:05 +00:00
Chris Craik
13ed2178c4
Make outline alpha APIs public
...
bug:16140822
Change-Id: Ie21e2a75b462319fb49c5696f0c019e1ea803bc1
2014-08-04 23:28:34 +00:00
ztenghui
5eb5cde467
Fix one typo and add linear progress bar in the test.
...
Change-Id: Ib516fd4a27000d8e69a6640386332140ff0d6fdd
2014-08-04 20:46:20 +00:00
Behdad Esfahbod
e9ad3931fa
Add fontFeatureSettings to TextView and attrs
...
New API is hidden.
Bug: 15246510
Change-Id: I8cdbbd3a36fc280e07569dbb130f8c237062fff5
2014-08-01 21:35:05 +00:00
Chris Craik
8e554924c5
Merge "Add outline alpha" into lmp-dev
2014-07-31 21:44:36 +00:00