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
ViewGroup: add child View at correct index
This commit is contained in:
@@ -63,7 +63,9 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
child.setLayoutParams(params);
|
||||
}
|
||||
child.parent = this;
|
||||
children.add(child);
|
||||
if (index < 0)
|
||||
index = children.size();
|
||||
children.add(index, child);
|
||||
native_addView(widget, child.widget, index, params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user