From b2504a79125db92f800f64dd4a227733542a45fe Mon Sep 17 00:00:00 2001 From: Gabriel Machado <97042217+GabrielBRDeveloper@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:32:31 -0400 Subject: [PATCH] Implement: ViewGroup.addView(child, params) --- res/ex-layout/main.xml | 93 ++++++------- src/br/nullexcept/mux/test/Example.java | 26 ++-- src/br/nullexcept/mux/view/View.java | 9 ++ src/br/nullexcept/mux/view/ViewGroup.java | 7 +- .../nullexcept/mux/widget/AbsoluteLayout.java | 13 +- src/br/nullexcept/mux/widget/FrameLayout.java | 13 +- .../nullexcept/mux/widget/LinearLayout.java | 125 ++++++++++++++---- 7 files changed, 183 insertions(+), 103 deletions(-) diff --git a/res/ex-layout/main.xml b/res/ex-layout/main.xml index 5c96ac8..8d8bdbc 100644 --- a/res/ex-layout/main.xml +++ b/res/ex-layout/main.xml @@ -1,65 +1,60 @@ - - + + + height="wrap_content" + orientation="horizontal" + padding="10dp" + background="#555" + gravity="center"> + + + + height="wrap_content" + paddingLeft="20dp" + background="#F00"> - -