Android Reference
NinePatch_Delegate
android.graphics
Class NinePatch_Delegate
-
public final class NinePatch_Delegate
extends Object
Delegate implementing the native methods of android.graphics.NinePatch
Through the layoutlib_create tool, the original native methods of NinePatch have been replaced
by calls to methods of the same name in this delegate class.
Because it's a stateless class to start with, there's no need to keep a DelegateManager
around to map int to instance of the delegate.
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
static NinePatchChunk |
getChunk(byte[] array)
Returns a NinePatchChunk object for the given serialized representation.
|
static byte[] |
serialize(NinePatchChunk chunk)
Serializes the given chunk.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getChunk
public static NinePatchChunk getChunk(byte[] array)
Returns a NinePatchChunk
object for the given serialized representation.
If the chunk is present in the cache then the object from the cache is returned, otherwise
the array is deserialized into a NinePatchChunk
object.
- Parameters:
array
- the serialized representation of the chunk.
- Returns:
- the NinePatchChunk or null if deserialization failed.
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 324 / 158800747. Delta: 0.03872 с