GskCanavas: draw default content when custom View calls super.onDraw()

This commit is contained in:
Julian Winkler
2024-05-25 19:58:55 +02:00
committed by Mis012
parent 6575fef58e
commit 6f02565920
9 changed files with 54 additions and 8 deletions

View File

@@ -31,6 +31,14 @@ JNIEXPORT jlong JNICALL Java_android_graphics_drawable_Drawable_native_1construc
JNIEXPORT void JNICALL Java_android_graphics_drawable_Drawable_native_1invalidate
(JNIEnv *, jobject, jlong);
/*
* Class: android_graphics_drawable_Drawable
* Method: native_draw
* Signature: (JJII)V
*/
JNIEXPORT void JNICALL Java_android_graphics_drawable_Drawable_native_1draw
(JNIEnv *, jobject, jlong, jlong, jint, jint);
#ifdef __cplusplus
}
#endif

View File

@@ -199,6 +199,14 @@ extern "C" {
#define android_view_View_TEXT_DIRECTION_LTR 3L
#undef android_view_View_TEXT_DIRECTION_RTL
#define android_view_View_TEXT_DIRECTION_RTL 4L
/*
* Class: android_view_View
* Method: native_onDraw
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_android_view_View_native_1onDraw
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: android_view_View
* Method: setOnTouchListener