69ea4e15e52c456537575d21443ac1efdb03a902 |
05-Jan-2011 |
Brad Fitzpatrick <bradfitz@android.com> |
Documentation fixes found over vacation hacking. Change-Id: I28900026465d66d950cf4f05f0c202b46c3c2d43
rawable.java
|
d45a33554ca6c18ed81e45320998b9e4f4680379 |
15-Sep-2010 |
Sonia Serafimova <sonia.serafimova@sonyericsson.com> |
Prevent unhandled exception in NinePatchDrawable Added null check in computeBitmapSize() to avoid unhandled exception "java.lang.NullPointerException" at android.graphics.Rect.<init>(Rect.java:72). This problem was discovered in the wild. Change-Id: I9d40629a052f1390e1811288af6209d8cc3f679b
inePatchDrawable.java
|
dfe5c204403bc56c29bb36410574eab8b1950417 |
09-Jun-2010 |
Scott Main <smain@google.com> |
docs: lots of additions to the resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type Change-Id: I733eec50bb2671f28c9e6dd7dec14eb6586f5193
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
rawable.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
otateDrawable.java
caleDrawable.java
hapeDrawable.java
tateListDrawable.java
ransitionDrawable.java
|
8e10a7b7c82209bf52ab8545d21777ea1728f81e |
26-Mar-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: I4d8f34986fd9e16ead8a22909263069dbb819d3e
|
1be46d7920dbdce24f878d6f4889ea8591ab75c6 |
25-Mar-2010 |
viral.vkm <viral.vkm@gmail.com> |
setCornerRadii should be called when either of corners radius is specified as 0dp and thus while checking for condition, it should be ORed and not ANDed. It solves Android Issue: 939 http://code.google.com/p/android/issues/detail?id=939 Change-Id: Ic18fae769480972f763f634e7462c6ed3853220b
radientDrawable.java
|
2b95c2413838c2e2b127ebab8fb4fead7d52e460 |
09-Feb-2010 |
Jeff Sharkey <jsharkey@android.com> |
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().
tateListDrawable.java
|
3941411a21b0ccbfb2843dd8c7c7fbe9f8e85abb |
11-Feb-2010 |
The Android Open Source Project <initial-contribution@android.com> |
am 1e90ab54: merge from open-source master Merge commit '1e90ab542d675616e9370ab7e5add99d7af12587' * commit '1e90ab542d675616e9370ab7e5add99d7af12587': Fixs the incorrect message for SecurityException Default RotateDrawable's pivot set to (50%, 50%)
|
b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6 |
06-Feb-2010 |
Cyril Mottier <cyrilmottier@gmail.com> |
Default RotateDrawable's pivot set to (50%, 50%) In order to define the pivot in an XML-instanciated RotateDrawable, android:pivotX and android:pivotY had to be set in your XML. Forgetting to set those attributes ended up in a NullPointerException (tv = null) that were caught by the Resources.getDrawable() method (caught as an Exception). As a result a not-very-accurate message was logged: "Resource not found ...". Defining a default pivot value seems like a great fix. Some other fixes would be to modify the documentation or notify the user with a better explanation than "Resource not found ...".
otateDrawable.java
|
e57b7b09b198699adea91b6f9729007fda00834e |
06-Jan-2010 |
Cary Clark <cary@android.com> |
set nine patch padding initially to an empty rectangle Formerly, the padding state was set to null. Copying the padding state fails when the null rectangle contents are referenced. fixes http://b/2219785
inePatchDrawable.java
|
9db3d07b9620b4269ab33f78604a36327e536ce1 |
13-Nov-2009 |
Jean-Baptiste Queru <jbq@google.com> |
eclair snapshot
nimatedRotateDrawable.java
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
olorDrawable.java
rawable.java
rawableContainer.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
inePatchDrawable.java
otateDrawable.java
caleDrawable.java
hapeDrawable.java
tateListDrawable.java
ransitionDrawable.java
|
29e4a3c566f435c32f0b95e4ac8e8b33cac6faba |
01-Oct-2009 |
Dianne Hackborn <hackbod@google.com> |
Update from API review. Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
itmapDrawable.java
|
4e03999ca20fd326e4ded3d7444ddd5c14f369c7 |
29-Sep-2009 |
Mike Reed <reed@google.com> |
if we have a single value for roundrect radius, manually clamp it before drawing. Skia will clamp the radius independently in X and Y to ensure it is not larger than 1/2 the width (or height). If the caller to our drawable gives us a single value, we'll assume they want it to be circular, and not an oval. To do that, we clamp it up front, so we get (possibly smaller) circular corners, rather than potentially elliptical ones. This makes the progress bar look "nicer" when it is very thin in one dimension.
radientDrawable.java
|
b8a9f12802ca5d1738a098a1769a8ed7959f248b |
23-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix #2101821: Cut labels of menu items in "SnapTell" market app. Ummmm... this turns out to be pretty bad. NinePatchDrawable was not scaling its reported padding for compatibility mode, causing spacing to be off. All over the place. This change should improve things quite a bit (and magically makes nearly all of the menu flaws go away). Change-Id: I94a8310d95b908b6f087db97d9afaed654ca6de5
inePatchDrawable.java
|
a41581ed4033004c73115113f45b9844e9b0210f |
17-Sep-2009 |
Romain Guy <romainguy@android.com> |
Add StateListDrawable's dither flag to the constant state. Change-Id: Ie377bfe3dfb83c33df3c0cc5a02810332a60a322
rawableContainer.java
|
ffff38420c8b4713470011b909ae2238b5675f7c |
16-Sep-2009 |
Romain Guy <romainguy@android.com> |
Build the BitmapShader if it hasn't been built yet. This was causing a bug in the InCall UI where the background would be stretched. Change-Id: Ie25a7d09f4779f166e267b2f921d40441ce361d2
itmapDrawable.java
|
c2974809373697147cbe5754835cc871fb93aef1 |
14-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2116977: buttons are huge and bent Now that we are using preloaded drawables in compatibilty mode, when constructing them from their constant state we need to set the new drawable's target density appropriately. Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
nimatedRotateDrawable.java
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
olorDrawable.java
rawable.java
rawableContainer.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
inePatchDrawable.java
otateDrawable.java
caleDrawable.java
hapeDrawable.java
tateListDrawable.java
ransitionDrawable.java
|
8cae124af2142687a6833dbaab8a43df6dd67b43 |
10-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Various cleanup around resources and nine-patches. Remove the stuff that doesn't use preloaded drawables when in compatibility mode, since this works fine ever since we were able to deal with drawables in a different density than the canvas. Change the snapshot function on View to return a snapshot at the same size that will actually be drawn on screen (when in compatibility mode), to be able to show scaling artifacts and all. This change was original an attempt to fix issue #2101917: Text field edges appears to be improperly rounded. That turns out to probably be something deeper in the graphics system, but also included here is the debugging code I did to try to track down the problem to make it easy to turn on again later. Change-Id: I34bfca629639c7ff103f3989d88874112ef778d9
inePatchDrawable.java
|
211db4a2874f1a2d0e7a8cb8d33e81fa08801763 |
11-Sep-2009 |
Mike Reed <reed@google.com> |
change default for dither to true
itmapDrawable.java
rawableContainer.java
inePatchDrawable.java
tateListDrawable.java
|
d9512a30d8e5c7780c3faf2fa59c076010f67b9e |
10-Sep-2009 |
Mike Reed <reed@google.com> |
default dithering to ON (cheap, looks good) officially ignore filtering (expensive, no real improvement)
inePatchDrawable.java
|
4a51c20ce607c74914f90fd897f04080121ac13b |
22-Aug-2009 |
Dianne Hackborn <hackbod@google.com> |
I am getting tired of the java doc warnings, so fix them. Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
itmapDrawable.java
inePatchDrawable.java
|
6afa16feb32d44c4977b3eb6007246a99f22fdbf |
20-Aug-2009 |
Jeff Sharkey <jsharkey@android.com> |
Add dither XML flag to StateListDrawable. We currently allow the dither="true" flag to be set on individual <bitmap> and <nine-patch> objects, but that flag is overridden when they are included in a <selector>. This change adds the dither="true" flag to StateListDrawable so they can be dithered when desired. Fixes http://b/issue?id=2068024
tateListDrawable.java
|
46407d831ef31c0935e6d069198ffb275c840d83 |
18-Aug-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix infinite recursion.
rawable.java
|
7341d7a104b47996445d069a695e155a07184606 |
14-Aug-2009 |
Dianne Hackborn <hackbod@google.com> |
More work on wallpapers. - Do better about figuring out when to stop them and other related window management. - Fix problem where we were not redrawing the surface when the orientation changed. This was the cause of the device hang.
rawable.java
|
1010ac9b7c52b1e2a64e8e1f4dcdb4d79f4d32cc |
11-Aug-2009 |
Romain Guy <romainguy@android.com> |
Fix possible NPE when mutating a DrawableContainer
rawableContainer.java
|
5c1207be90fdf296c1b83034b7c68915e1749284 |
01-Aug-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
itmapDrawable.java
rawable.java
rawableContainer.java
inePatchDrawable.java
|
a8675f67e33bc7337d148358783b0fd138b501ff |
29-Jul-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
hapeDrawable.java
|
e2dba02441b42afbae725109ac779877a4b72aa0 |
25-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
am 11ea3347: Allow for screen density drawables in compatibility mode. Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8' * commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8': Allow for screen density drawables in compatibility mode.
|
11ea33471e1a14a8594f0b2cd012d86340dd3bd8 |
23-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
Allow for screen density drawables in compatibility mode. This change allows us to use drawables that match the current screen density even when being loaded in compatibility mode. In this case, the bitmap is loaded in the screen density, and the bitmap and nine-patch drawables take care of accounting for the density difference. This should be safe for existing applications, for the most part, since they shouldn't really be pulling the bitmap out of the drawable. For the small rare chance of them breaking, it worth getting the correct graphics. Also this will only happen when there is actually a resource of the matching density, and no existing apps should have resources for anything besides the default density (though of course all of the framework resources will be available in the native density). As part of this, the bitmap density API has been changed to a single integer provider the DPI unit density.
itmapDrawable.java
rawable.java
inePatchDrawable.java
|
8aea2f5f749e48ef0fe3532ab2fc258922c3239b |
22-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 59c25cba: Merge change 8218 into donut Merge commit '59c25cbaf0dd690e503b881392510127441d9074' * commit '59c25cbaf0dd690e503b881392510127441d9074': DrawableContainer was not respecting the value returned by Drawable.getPadding(Rect).
|
5140141c2637b89ad0d86c3b715459a1e7b92729 |
22-Jul-2009 |
Romain Guy <romainguy@android.com> |
DrawableContainer was not respecting the value returned by Drawable.getPadding(Rect). Before this change, DrawableContainer would always return true from getPadding(Rect) even if all of its children were returning false from getPadding(Rect). This change modifies this behavior to respect getPadding(Rect): mConstantPadding is kept null when getPadding(Rect) returns false for all of the children and a flag is set to avoid recomputing that value every time getConstantPadding() is invoked.
rawableContainer.java
|
cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f |
21-Jul-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
nimatable.java
nimatedRotateDrawable.java
nimationDrawable.java
rawable.java
rawableContainer.java
radientDrawable.java
|
eabdb7c252d7e245932891482458486e67ab93d2 |
08-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 6b532800: Merge change 6478 into donut Merge commit '6b5328006ff9e844713eb26b40621d72bee0bdd1' * commit '6b5328006ff9e844713eb26b40621d72bee0bdd1': Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding
|
90cfa9df3f3b586eae49ee2d2533a05238d391a4 |
08-Jul-2009 |
Phil Dubach <phillipd@google.com> |
Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding ShapeDrawable.inflateTag() handles the 'padding' tag with the standard attributes android:left, etc. The attribute values for these standard attributes should be dimension specifications, e.g. '4dp'. ShapeDrawable.inflateTag() was wrongly parsing the attribute values as plain integers.
hapeDrawable.java
|
0f07b2c850ee1462ca4cf3137a954a9fc4bdf773 |
27-Apr-2009 |
Brad Fitzpatrick <brad@danga.com> |
Lazily allocate the mBounds Rect in Drawable. For background, see: http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html Thanks, Markus!
rawable.java
|
b5537c452271634b6ff3981b0624fa65384abd5b |
30-Jun-2009 |
Romain Guy <romainguy@android.com> |
Replace indeterminate progress animated asset with new ones
nimatable.java
nimatedRotateDrawable.java
nimationDrawable.java
|
6be507cc66863a08f08d6c0675e5bc11e5a45d32 |
30-Jun-2009 |
Phil Dubach <phillipd@google.com> |
Fix NullPointerException in DrawableContainer.mutate() DrawableContainerState.mDrawables is an array which may be only partially filled, as can be seen in the constructor and the addChild() method. DrawableContainer.mutate() wrongly assumed that the array does not contain null references.
rawableContainer.java
|
f4f7046183f0daedd17703fa16cf9026442bdaee |
27-Jun-2009 |
Romain Guy <romainguy@android.com> |
Update spinner's drawables. Clean up resources, pave the way for new animation.
nimatedRotateDrawable.java
rawable.java
|
562bf17c6c7c5226b2220e27a1543d4a43543d6c |
24-Jun-2009 |
Phil Dubach <phillipd@google.com> |
Fix NPE in GradientDrawable constructor The mColors member can be null, as can be seen in GradientDrawable.setSolidColor() or the plain constructor. In that case, an NPE will be thrown on attempts to derive a new GradientDrawable from the instance using the private constructor GradientDrawable(GradientDrawable). The problem also occurs when inflating a GradientDrawable from XML without defining the start, center and end colors and then calling mutate() on the instance.
radientDrawable.java
|
843ef36f7b96cc19ea7d2996b7c8661b41ec3452 |
20-May-2009 |
Jean-Baptiste Queru <jbq@google.com> |
donut snapshot
rawable.java
rawableContainer.java
|
83b2107c4d2f07f46b6ae663115421749486f8b1 |
12-May-2009 |
Romain Guy <romainguy@android.com> |
Fixes #1846038. DrawableContainer was wrongly returning its opacity by ignoring the visibility of the currently selected layer. This change simply reports a TRANSPARENT opacity if there is no currently selected layer of if the selected layer is not visible. Otherwise it reports the opacity computed by the state class.
rawableContainer.java
|
23bd84ce6c448b73847eb404f3a1cc7b10afb6d6 |
28-Apr-2009 |
Romain Guy <romainguy@google.com> |
Fixes #1816088. Avoid initializing empty Rects when they are useless, especially in Zygote.
rawable.java
|
4df2423a947bcd3f024cc3d3a1a315a8dc428598 |
05-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@136594
evelListDrawable.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
olorDrawable.java
rawable.java
rawableContainer.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
inePatchDrawable.java
aintDrawable.java
ictureDrawable.java
otateDrawable.java
caleDrawable.java
hapeDrawable.java
tateListDrawable.java
ransitionDrawable.java
ackage.html
hapes/ArcShape.java
hapes/OvalShape.java
hapes/PathShape.java
hapes/RectShape.java
hapes/RoundRectShape.java
hapes/Shape.java
hapes/package.html
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
olorDrawable.java
rawable.java
rawableContainer.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
inePatchDrawable.java
aintDrawable.java
ictureDrawable.java
otateDrawable.java
caleDrawable.java
hapeDrawable.java
tateListDrawable.java
ransitionDrawable.java
ackage.html
hapes/ArcShape.java
hapes/OvalShape.java
hapes/PathShape.java
hapes/RectShape.java
hapes/RoundRectShape.java
hapes/Shape.java
hapes/package.html
|
076357b8567458d4b6dfdcf839ef751634cd2bfb |
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@132589
rawable.java
inePatchDrawable.java
tateListDrawable.java
|
3dec7d563a2f3e1eb967ce2054a00b6620e3558c |
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@137055
rawable.java
inePatchDrawable.java
tateListDrawable.java
|
da996f390e17e16f2dfa60e972e7ebc4f868f37e |
13-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@131421
radientDrawable.java
otateDrawable.java
caleDrawable.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
rawable.java
rawableContainer.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
inePatchDrawable.java
otateDrawable.java
caleDrawable.java
hapeDrawable.java
tateListDrawable.java
ransitionDrawable.java
ackage.html
hapes/PathShape.java
hapes/RectShape.java
hapes/RoundRectShape.java
hapes/Shape.java
|
f1e484acb594a726fb57ad0ae4cfe902c7f35858 |
22-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@127436
ayerDrawable.java
|
b798689749c64baba81f02e10cf2157c747d6b46 |
10-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@125939
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
olorDrawable.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
otateDrawable.java
caleDrawable.java
tateListDrawable.java
ransitionDrawable.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
nimationDrawable.java
itmapDrawable.java
olorDrawable.java
ayerDrawable.java
ransitionDrawable.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
nimationDrawable.java
itmapDrawable.java
lipDrawable.java
olorDrawable.java
rawable.java
rawableContainer.java
radientDrawable.java
nsetDrawable.java
ayerDrawable.java
evelListDrawable.java
inePatchDrawable.java
aintDrawable.java
ictureDrawable.java
otateDrawable.java
caleDrawable.java
hapeDrawable.java
tateListDrawable.java
ransitionDrawable.java
ackage.html
hapes/ArcShape.java
hapes/OvalShape.java
hapes/PathShape.java
hapes/RectShape.java
hapes/RoundRectShape.java
hapes/Shape.java
hapes/package.html
|