How could i divide my layout in two parts in Android -
i want dive layout in 2 parts have common design.layout orientation horizontal , want have 2 layout of layout how .here xml please suggest me how that.
copy , paste below code in xml file, , made changes like, can ask if want
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <linearlayout android:layout_width="wrap_content" android:layout_height="match_parent" android:orientation="vertical" android:layout_weight="1" > <button android:layout_width="wrap_content" android:layout_height="wrap_content" /> <button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" /> <button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" /> <button android:id="@+id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" /> </linearlayout> <linearlayout android:layout_width="wrap_content" android:layout_height="461dp" android:layout_weight="1.00" android:orientation="vertical" > <button android:layout_width="wrap_content" android:layout_height="wrap_content" /> <button android:id="@+id/button4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" /> <button android:id="@+id/button5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" /> <button android:id="@+id/button6" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" /> </linearlayout>
Comments
Post a Comment