Search in sources :

Example 1 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project platform_frameworks_base by android.

the class AnimatedVectorDrawable_Delegate method nCreatePathColorPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathColorPropertyHolder(long nativePtr, int propertyId, int startValue, int endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Integer> setter = path.getIntPropertySetter(propertyId);
    return sHolders.addNewDelegate(IntPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 2 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project platform_frameworks_base by android.

the class AnimatedVectorDrawable_Delegate method nCreatePathPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathPropertyHolder(long nativePtr, int propertyId, float startValue, float endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Float> setter = path.getFloatPropertySetter(propertyId);
    return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 3 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by DirtyUnicorns.

the class AnimatedVectorDrawable_Delegate method nCreatePathPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathPropertyHolder(long nativePtr, int propertyId, float startValue, float endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Float> setter = path.getFloatPropertySetter(propertyId);
    return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 4 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by ResurrectionRemix.

the class AnimatedVectorDrawable_Delegate method nCreatePathPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathPropertyHolder(long nativePtr, int propertyId, float startValue, float endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Float> setter = path.getFloatPropertySetter(propertyId);
    return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Example 5 with VFullPath_Delegate

use of android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate in project android_frameworks_base by crdroidandroid.

the class AnimatedVectorDrawable_Delegate method nCreatePathPropertyHolder.

@LayoutlibDelegate
static /*package*/
long nCreatePathPropertyHolder(long nativePtr, int propertyId, float startValue, float endValue) {
    VFullPath_Delegate path = VNativeObject.getDelegate(nativePtr);
    Consumer<Float> setter = path.getFloatPropertySetter(propertyId);
    return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue, endValue));
}
Also used : VFullPath_Delegate(android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Aggregations

VFullPath_Delegate (android.graphics.drawable.VectorDrawable_Delegate.VFullPath_Delegate)10 LayoutlibDelegate (com.android.tools.layoutlib.annotations.LayoutlibDelegate)10