Home
last modified time | relevance | path

Searched refs:NinePatch (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DNinePatch.java33 public class NinePatch { class
86 public NinePatch(Bitmap bitmap, byte[] chunk) { in NinePatch() method in NinePatch
98 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { in NinePatch() method in NinePatch
107 public NinePatch(NinePatch patch) { in NinePatch() method in NinePatch
DBitmap.java74 private NinePatch.InsetStruct mNinePatchInsets; // may be null
111 byte[] ninePatchChunk, NinePatch.InsetStruct ninePatchInsets) { in Bitmap()
957 public NinePatch.InsetStruct getNinePatchInsets() { in getNinePatchInsets()
DBitmapFactory.java563 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np); in setDensityFromOptions()
DCanvas.java1300 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch()
1313 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch()
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java30 import android.graphics.NinePatch;
70 private NinePatch mNinePatch;
94 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable()
103 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable()
115 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets), in NinePatchDrawable()
126 public NinePatchDrawable(NinePatch patch) { in NinePatchDrawable()
134 public NinePatchDrawable(Resources res, NinePatch patch) { in NinePatchDrawable()
216 private void setNinePatch(NinePatch ninePatch) { in setNinePatch()
293NinePatch.InsetStruct insets = mNinePatchState.mNinePatch.getBitmap().getNinePatchInsets(); in getOutline()
452 state.mNinePatch = new NinePatch(bitmap, bitmap.getNinePatchChunk()); in updateStateFromTypedArray()
[all …]
DDrawable.java30 import android.graphics.NinePatch;
991 if (np == null || !NinePatch.isNinePatchChunk(np)) { in createFromResourceStream()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java70 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load( in nativeDecodeStream()
/frameworks/base/docs/html/tools/help/
Ddraw9patch.jd2 page.tags=NinePatch
6 {@link android.graphics.NinePatch} graphic using a WYSIWYG editor.</p>
16 You'll need the PNG image with which you'd like to create a NinePatch.</p>
Dindex.jd156 <dd>Allows you to easily create a {@link android.graphics.NinePatch} graphic using a
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java27 import com.android.ninepatch.NinePatch;
198 if (lowerCaseValue.endsWith(NinePatch.EXTENSION_9PATCH)) { in getDrawable()
289 NinePatch ninePatch = NinePatch.load(inputStream, true /*is9Patch*/, in getNinePatchDrawable()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DBridgeResources.java28 import com.android.ninepatch.NinePatch;
624 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
656 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
/frameworks/base/docs/html-intl/intl/es/training/multiscreen/
Dscreensizes.jd24 <li><a href="#TaskUse9Patch">Cómo utilizar mapas de bits de la clase NinePatch</a></li>
254 <h2 id="TaskUse9Patch">Cómo utilizar mapas de bits de la clase NinePatch</h2>
258 …irarán o estrecharán. La solución es utilizar mapas de bits de la clase NinePatch, que son archivo…
260 …tiliza siempre mapas de bits de la clase NinePatch. Para convertir un mapa de bits en uno de la cl…
273 …, de este modo, el marco detecta que se trata de una imagen de la clase NinePatch, en lugar de una…
278 <p class="img-caption"><strong>Figura 6.</strong> Botón que utiliza la clase NinePatch <code>button…
Dindex.jd56 …de orientación y tamaño de pantalla, filtros de alias y mapas de bits de la clase NinePatch).</dd>
/frameworks/base/docs/html/guide/topics/graphics/
D2d-graphics.jd437 An example use of a NinePatch is the backgrounds used by standard Android buttons &mdash;
438 buttons must stretch to accommodate strings of various lengths. A NinePatch drawable is a
454 If a View object sets the NinePatch as its background and then specifies the
465 Here is a sample NinePatch file used to define a button:
469 <p>This NinePatch defines one stretchable area with the left and top lines
480 an extremely handy way to create your NinePatch images, using a WYSIWYG graphics editor. It
487 <p>Here's some sample layout XML that demonstrates how to add a NinePatch image to a
488 couple of buttons. (The NinePatch image is saved as
513 <p>Below are the two buttons rendered from the XML and NinePatch image shown above.
/frameworks/base/core/java/android/view/
DGLES20Canvas.java24 import android.graphics.NinePatch;
557 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { in drawPatch()
566 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch()
/frameworks/base/core/jni/
DAndroid.mk110 android/graphics/NinePatch.cpp \
/frameworks/base/docs/html/sdk/api_diff/4/
DmissingSinces.txt28 ….drawable.NinePatchDrawable Constructor (android.content.res.Resources, android.graphics.NinePatch)
55 NO DOC BLOCK: android.graphics.NinePatch Method getDensity()
/frameworks/base/docs/html/guide/topics/resources/
Ddrawable-resource.jd23 <dt><a href="#NinePatch">Nine-Patch File</a></dt>
306 <h2 id="NinePatch">Nine-Patch</h2>
308 <p>A {@link android.graphics.NinePatch} is a PNG image in which you can define stretchable regions
/frameworks/base/docs/html/sdk/
DOLD_RELEASENOTES.jd178 …ls/help/draw9patch.html">Draw 9-patch</a> allows you to easily create a NinePatch graphic using a …
/frameworks/base/
Dpreloaded-classes662 android.graphics.NinePatch
663 android.graphics.NinePatch$InsetStruct
/frameworks/base/docs/html/
Dsitemap.txt659 http://developer.android.com/reference/android/graphics/NinePatch.html
5903 http://developer.android.com/sdk/api_diff/4/changes/android.graphics.NinePatch.html
/frameworks/base/api/
Dsystem-current.txt11231 public class NinePatch {
11232 ctor public NinePatch(android.graphics.Bitmap, byte[]);
11233 ctor public NinePatch(android.graphics.Bitmap, byte[], java.lang.String);
12189 ctor public deprecated NinePatchDrawable(android.graphics.NinePatch);
12190 ctor public NinePatchDrawable(android.content.res.Resources, android.graphics.NinePatch);
Dcurrent.txt10925 public class NinePatch {
10926 ctor public NinePatch(android.graphics.Bitmap, byte[]);
10927 ctor public NinePatch(android.graphics.Bitmap, byte[], java.lang.String);
11883 ctor public deprecated NinePatchDrawable(android.graphics.NinePatch);
11884 ctor public NinePatchDrawable(android.content.res.Resources, android.graphics.NinePatch);