LinearLayout: set GtkBox to homogeneous if all child weights are equal

Real weighted allocation is not supported by GtkBox
This commit is contained in:
Julian Winkler
2024-01-01 12:11:31 +01:00
parent c5b315cb38
commit bf3f595a8c
4 changed files with 31 additions and 1 deletions

View File

@@ -223,6 +223,14 @@ JNIEXPORT void JNICALL Java_android_widget_LinearLayout_setOrientation
JNIEXPORT jint JNICALL Java_android_widget_LinearLayout_getOrientation
(JNIEnv *, jobject);
/*
* Class: android_widget_LinearLayout
* Method: native_setHomogenousWeight
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_android_widget_LinearLayout_native_1setHomogenousWeight
(JNIEnv *, jobject, jlong, jboolean);
#ifdef __cplusplus
}
#endif