android - how do i set my screen for tablet? -
this xml code below make app tablet how set layout? change image button position when moving portrait landscape mode (green color button) , space in between 4 image icon , playstore icon when in portrait how reduce this?? me please images http://imgur.com/eks82xc , http://imgur.com/2piea8k want show green button below header right side above 4 icons button , reduce gap in between 4 icon , googleplay store icon how do this? change position when moving portrait landscape make tablet 1024 600 resolution
<?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <linearlayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/home_bgg" android:orientation="vertical" > <framelayout android:layout_width="fill_parent" android:layout_height="65.0dip" > <imageview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:src="@drawable/logo" /> </framelayout> <imagebutton android:id="@id/btnsetting" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_marginright="10.0dip" android:paddingbottom="5dp" android:background="@null" android:src="@drawable/power_on" /> <relativelayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" android:gravity="center" > <imagebutton android:id="@id/btncamera" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@color/transparent" android:src="@drawable/home_btn_camera" /> <imagebutton android:id="@id/btnhdr" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="@dimen/home_btn_padding" android:layout_torightof="@id/btncamera" android:background="@color/transparent" android:src="@drawable/home_btn_hdr" /> <imagebutton android:id="@id/btnbeautify" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/btncamera" android:layout_margintop="@dimen/home_btn_padding" android:background="@color/transparent" android:src="@drawable/home_btn_edit" /> <imagebutton android:id="@id/btncollage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignleft="@id/btnhdr" android:layout_aligntop="@id/btnbeautify" android:layout_torightof="@id/btnbeautify" android:background="@color/transparent" android:src="@drawable/home_btn_collage" /> </relativelayout> <relativelayout android:layout_width="wrap_content" android:layout_height="0.0dip" android:layout_weight="0.5" android:gravity="center" > <imagebutton android:id="@id/btnsearch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="40dp" android:background="@null" android:gravity="center" android:layout_centerinparent="true" android:src="@drawable/google_play" /> <imagebutton android:id="@id/btnhot" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@null" android:gravity="right" android:layout_alignparentbottom="true" android:layout_alignparentright="true" android:src="@drawable/footer_logoo" /> </relativelayout> </linearlayout> </framelayout>
put green button on same framelayout image view, , other 4 buttons, give id thr bottom google play relatiev layout , in relative layout of 4 buttons use this, android:layout_above="@+id/id_of_googleplay relative layout", , remove layout_weights, , gravity, in linearlayout gravity makes no sense since oriented consequently
Comments
Post a Comment