View.onMeasure: handle MEASURE_SPEC_AT_MOST properly

We decide between simple widgets which handles MEASURE_SPEC_AT_MOST the same way as
MEASURE_SPEC_EXACTLY, and complex widgets which handles MEASURE_SPEC_AT_MOST by measuring the content
This commit is contained in:
Julian Winkler
2023-10-14 11:06:27 +02:00
committed by Mis012
parent e735757a2e
commit 37d9b13470
6 changed files with 41 additions and 11 deletions

View File

@@ -258,10 +258,10 @@ JNIEXPORT void JNICALL Java_android_view_View_native_1destructor
/*
* Class: android_view_View
* Method: native_measure
* Signature: (JII)V
* Signature: (JIIZ)V
*/
JNIEXPORT void JNICALL Java_android_view_View_native_1measure
(JNIEnv *, jobject, jlong, jint, jint);
(JNIEnv *, jobject, jlong, jint, jint, jboolean);
/*
* Class: android_view_View