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
set parent before calling setLayoutParams()
Allows the parent gravity to get handled correctly
This commit is contained in:
@@ -75,8 +75,8 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
|||||||
if (!checkLayoutParams(params)) {
|
if (!checkLayoutParams(params)) {
|
||||||
params = generateLayoutParams(params);
|
params = generateLayoutParams(params);
|
||||||
}
|
}
|
||||||
child.setLayoutParams(params);
|
|
||||||
child.parent = this;
|
child.parent = this;
|
||||||
|
child.setLayoutParams(params);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
index = children.size();
|
index = children.size();
|
||||||
children.add(index, child);
|
children.add(index, child);
|
||||||
|
|||||||
Reference in New Issue
Block a user