android - How to design the layout using relative layout? -
in android application want design layout blow
i have 4 separate images below
please me in how design layout. in advance
you can try this..
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" > <linearlayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/image1" /> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/image2" /> </linearlayout> <linearlayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/image4" /> <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/image3" /> </linearlayout> </linearlayout> </relativelayout>
Comments
Post a Comment