2.3.9 Nested Views Codehs !!exclusive!! -
// Child: Button var btn = new Rectangle(100, 35); btn.setPosition(50, 180); btn.setColor("#0084ff"); var btnLabel = new Text("Connect"); btnLabel.setPosition(100, 202); btnLabel.setColor("white"); btnLabel.setTextAlign("center");
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <!-- This is the NESTED layout --> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> 2.3.9 nested views codehs