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
View.setTranslationY(): queue allocate when called on CoordinatorLayout
androidx adjusts the translation a little bit and immediately reverts it to trigger a layout pass on the CoordinatorLayout. Calling gtk_widget_queue_allocate here makes CoordinatorLayout behave correctly, but it causes strange issues with other Views. Therefore, it is done only for CoordinatorLayouts for now.
This commit is contained in:
@@ -287,6 +287,14 @@ JNIEXPORT void JNICALL Java_android_view_View_native_1requestLayout
|
||||
JNIEXPORT void JNICALL Java_android_view_View_native_1setBackgroundDrawable
|
||||
(JNIEnv *, jobject, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_view_View
|
||||
* Method: native_queueAllocate
|
||||
* Signature: (J)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_view_View_native_1queueAllocate
|
||||
(JNIEnv *, jobject, jlong);
|
||||
|
||||
/*
|
||||
* Class: android_view_View
|
||||
* Method: nativeInvalidate
|
||||
|
||||
Reference in New Issue
Block a user