android - How to design the layout using relative layout? -


in android application want design layout blow

home

i have 4 separate images below

enter image description hereenter image description here

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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -