You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
setLayoutParams(): better match Androids behaviour
View.setGravity() specifies gravity of children, not of the view itself LayoutParams.weight > 0 should cause expansion of widget
This commit is contained in:
@@ -199,14 +199,6 @@ 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: setGravity
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_view_View_setGravity
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: android_view_View
|
||||
* Method: setOnTouchListener
|
||||
@@ -249,11 +241,11 @@ JNIEXPORT jlong JNICALL Java_android_view_View_native_1constructor
|
||||
|
||||
/*
|
||||
* Class: android_view_View
|
||||
* Method: native_set_size_request
|
||||
* Signature: (II)V
|
||||
* Method: native_setLayoutParams
|
||||
* Signature: (JIIIF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_view_View_native_1set_1size_1request
|
||||
(JNIEnv *, jobject, jint, jint);
|
||||
JNIEXPORT void JNICALL Java_android_view_View_native_1setLayoutParams
|
||||
(JNIEnv *, jobject, jlong, jint, jint, jint, jfloat);
|
||||
|
||||
/*
|
||||
* Class: android_view_View
|
||||
|
||||
Reference in New Issue
Block a user