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

@@ -54,7 +54,7 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
addView(child, params);
}
private void addViewInternal(View child, int index, LayoutParams params) {
protected void addViewInternal(View child, int index, LayoutParams params) {
if (child.parent == this)
return;
if (!checkLayoutParams(params)) {