Not able to view complete design on an Android Device -


what happening have created design view page. think there issues because of complete design not showed on device. complete xml file .

    <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:background="@drawable/gray_bg" >      <imageview         android:id="@+id/imageview1"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_margintop="10dp"         android:src="@drawable/logo_demo" />      <linearlayout         android:id="@+id/triptypelayout"         android:layout_width="match_parent"         android:layout_height="50dp"         android:layout_below="@+id/imageview1"         android:layout_margintop="10dp"         android:orientation="horizontal" >          <textview             android:id="@+id/roundtriptextview"             android:layout_width="0dp"             android:layout_height="match_parent"             android:layout_margintop="5dp"             android:layout_weight="1"             android:background="#ff0000ff"             android:gravity="center"             android:text="@string/round_trip_text"             android:textcolor="@android:color/white"             android:textsize="20sp" />          <textview             android:id="@+id/onewaytextview"             android:layout_width="0dp"             android:layout_height="match_parent"             android:layout_marginleft="1dp"             android:layout_margintop="5dp"             android:layout_weight="1"             android:background="#ff0000ff"             android:gravity="center"             android:text="@string/oneway_text"             android:textcolor="@android:color/white"             android:textsize="20sp" />          <textview             android:id="@+id/multicitytextview"             android:layout_width="0dp"             android:layout_height="match_parent"             android:layout_marginleft="1dp"             android:layout_margintop="5dp"             android:layout_weight="1"             android:background="#ff0000ff"             android:gravity="center"             android:text="@string/multicity_text"             android:textcolor="@android:color/white"             android:textsize="20sp" />     </linearlayout>      <linearlayout         android:id="@+id/fromtolayout"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/triptypelayout"         android:background="@drawable/gray_bg"         android:orientation="horizontal" >          <linearlayout             android:id="@+id/fromlayout"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_margintop="10dp"             android:layout_weight="2"             android:gravity="center"             android:orientation="vertical" >              <textview                 android:id="@+id/fromtextview"                 android:layout_width="match_parent"                 android:layout_height="20dp"                 android:gravity="center_horizontal"                 android:text="from" />              <textview                 android:layout_width="90dp"                 android:layout_height="10dp"                 android:background="@layout/shape_line" />              <autocompletetextview                 android:id="@+id/departlocation"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:gravity="center_horizontal"                 android:text="" />         </linearlayout>          <linearlayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_margintop="10dp"             android:orientation="vertical" >              <imageview                 android:layout_width="wrap_content"                 android:layout_height="match_parent"                 android:layout_margintop="5dp"                 android:src="@drawable/twoway" />         </linearlayout>          <linearlayout             android:id="@+id/tolayout"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_margintop="10dp"             android:layout_weight="2"             android:gravity="center"             android:orientation="vertical" >              <textview                 android:id="@+id/totextview"                 android:layout_width="match_parent"                 android:layout_height="20dp"                 android:gravity="center_horizontal"                 android:text="@string/to" />              <textview                 android:layout_width="90dp"                 android:layout_height="10dp"                 android:background="@layout/shape_line" />              <autocompletetextview                 android:id="@+id/arrivallocation"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:gravity="center_horizontal"                 android:text="" />         </linearlayout>     </linearlayout>      <linearlayout         android:id="@+id/datelayout"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/fromtolayout"         android:background="@drawable/gray_bg"         android:baselinealigned="false"         android:orientation="horizontal" >          <linearlayout             android:id="@+id/departdatelayout"             android:layout_width="0dp"             android:layout_height="wrap_content"             android:layout_margintop="10dp"             android:layout_weight="2"             android:orientation="vertical" >              <textview                 android:id="@+id/depardatetextview"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:gravity="center_horizontal"                 android:text="@string/departdate" />              <linearlayout                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 android:gravity="center"                 android:orientation="horizontal" >                  <imageview                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:layout_margintop="5dp"                     android:src="@drawable/calendar" />                  <edittext                     android:id="@+id/departdate"                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:layout_margintop="5dp"                     android:gravity="center_horizontal"                     android:text="dd/mm/yyyy" />             </linearlayout>         </linearlayout>          <linearlayout             android:id="@+id/returndatelayout"             android:layout_width="0dp"             android:layout_height="wrap_content"             android:layout_margintop="10dp"             android:layout_weight="2"             android:orientation="vertical" >              <textview                 android:id="@+id/returndata"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:gravity="center_horizontal"                 android:text="@string/returndate" />              <linearlayout                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 android:gravity="center"                 android:orientation="horizontal" >                  <imageview                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:layout_margintop="5dp"                     android:src="@drawable/calendar" />                  <edittext                     android:id="@+id/returndate"                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:layout_margintop="5dp"                     android:gravity="center_horizontal"                     android:text="dd/mm/yyyy" />             </linearlayout>         </linearlayout>     </linearlayout>      <linearlayout         android:id="@+id/travellers_data"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/datelayout"         android:background="@drawable/gray_bg"         android:orientation="vertical" >          <linearlayout             android:layout_width="fill_parent"             android:layout_height="wrap_content"             android:gravity="center"             android:orientation="horizontal"             android:paddingtop="5dp" >              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="travellers" />         </linearlayout>          <linearlayout             android:id="@+id/travellers_data"             android:layout_width="fill_parent"             android:layout_height="wrap_content"             android:baselinealigned="false"             android:orientation="horizontal" >              <linearlayout                 android:id="@+id/adults"                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_weight="2"                 android:orientation="vertical" >                  <textview                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:gravity="center_horizontal"                     android:text="adult"                     android:textstyle="bold" />                  <textview                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:gravity="center_horizontal"                     android:text="12 + years" />                  <linearlayout                     android:layout_width="fill_parent"                     android:layout_height="wrap_content"                     android:gravity="center"                     android:orientation="horizontal" >                      <imageview                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:src="@drawable/adult" />                      <textview                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:layout_margintop="5dp"                         android:gravity="center_horizontal"                         android:text="2"                         android:textstyle="bold" />                 </linearlayout>             </linearlayout>              <linearlayout                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_weight="2"                 android:orientation="vertical" >                  <textview                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:gravity="center_horizontal"                     android:text="children"                     android:textstyle="bold" />                  <textview                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:gravity="center_horizontal"                     android:text="2 - 11 years" />                  <linearlayout                     android:layout_width="fill_parent"                     android:layout_height="wrap_content"                     android:gravity="center"                     android:orientation="horizontal" >                      <imageview                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:src="@drawable/children" />                      <textview                         android:id="@+id/returndate"                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:gravity="center_horizontal"                         android:text="1"                         android:textstyle="bold" />                 </linearlayout>             </linearlayout>              <linearlayout                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_weight="2"                 android:orientation="vertical" >                  <textview                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:gravity="center_horizontal"                     android:text="infant"                     android:textstyle="bold" />                  <textview                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:gravity="center_horizontal"                     android:text="below 2 years" />                  <linearlayout                     android:layout_width="fill_parent"                     android:layout_height="wrap_content"                     android:gravity="center"                     android:orientation="horizontal" >                      <imageview                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:src="@drawable/infant" />                      <textview                         android:id="@+id/returndate"                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:layout_margintop="5dp"                         android:gravity="center_horizontal"                         android:text="0"                         android:textstyle="bold" />                 </linearlayout>             </linearlayout>         </linearlayout>     </linearlayout>      <linearlayout         android:id="@+id/class_pref"         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/travellers_data"         android:background="@drawable/gray_bg"         android:orientation="horizontal" >          <linearlayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_margintop="5dp"             android:layout_weight="1"             android:gravity="center"             android:orientation="horizontal" >              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="class"                 android:textstyle="bold" />              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_marginleft="10dp"                 android:background="@layout/shape_rectangle"                 android:text="economy" />         </linearlayout>          <linearlayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_margintop="5dp"             android:layout_weight="1"             android:gravity="center"             android:orientation="horizontal" >              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="pref airline"                 android:textstyle="bold" />              <textview                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_marginleft="10dp"                 android:background="@layout/shape_rectangle"                 android:text="all  " />         </linearlayout>     </linearlayout>      <linearlayout         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/class_pref"         android:background="@drawable/gray_bg"         android:gravity="center"         android:orientation="horizontal" >          <imageview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:src="@drawable/searchflight" />     </linearlayout>  </relativelayout> 

i not able view searchflight image on bottom of device

i think should use scrollview layout. though layout long, scrollview provide space render views.

just put scrollview before relativelayout. means relativelayout child of scrollview.

note

scrollview holds 1 child.

edit

<scrollview xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@drawable/ic_launcher" >      <relativelayout         xmlns:android="http://schemas.android.com/apk/res/android"         android:layout_width="match_parent"         android:layout_height="wrap_content" >          <!-- other views inside -->      </relativelayout>  </scrollview> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -