1. Download our Official Android App: Forums for Android!

Vertical layout problem...

Discussion in 'Android Themes' started by ajaypatelaj, Mar 28, 2011.

  1. ajaypatelaj

    ajaypatelaj Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Mar 28, 2011

    Mar 28, 2011
    3
    0
    5
    Hi

    This is my code....
    i want to setup vertical scroll in my page because this page is too much long due to forms deatils please help me how to resolve it....
    i ll appreciate him/her for that .. thanks
    ------------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:eek:rientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >



    <Button
    android:id="@+id/button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="10dp"
    android:background="@drawable/android_button" />

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/nameh"
    />

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/addh"
    android:inputType="textMultiLine"
    android:lines="5"
    />

    <Spinner
    android:id="@+id/SpinnerFeedbackType"
    android:layout_height="wrap_content"
    android:prompt="@string/feedbacktype1"
    android:layout_width="fill_parent"
    android:entries="@array/feedbacktypelist">
    </Spinner>

    <RadioGroup
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:eek:rientation="vertical">
    <RadioButton android:id="@+id/radio_red"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Male" />
    <RadioButton android:id="@+id/radio_blue"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Female" />
    </RadioGroup>

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/noh"
    />

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/emailh"
    />
    <RatingBar android:id="@+id/ratingbar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:numStars="5"
    android:stepSize="1.0"/>


    </LinearLayout>
    ------------------------------------------------------------------
     

    Advertisement

  2. ajaypatelaj

    ajaypatelaj Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Mar 28, 2011

    Mar 28, 2011
    3
    0
    5
    Sorry guys got the answer....

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout android:id="@+id/LinearLayout01"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <ScrollView android:id="@+id/ScrollView01"
    android:layout_width="fill_parent"
    android:layout_height="600px">
    <LinearLayout android:id="@+id/LinearLayout02"
    android:layout_width="wrap_content"
    android:layout_height="300px"
    android:eek:rientation="vertical">
    <Button
    android:id="@+id/button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="10dp"
    android:background="@drawable/android_button" />

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/nameh"
    />

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/addh"
    android:inputType="textMultiLine"
    android:lines="5"
    />

    <Spinner
    android:id="@+id/SpinnerFeedbackType"
    android:layout_height="wrap_content"
    android:prompt="@string/feedbacktype1"
    android:layout_width="fill_parent"
    android:entries="@array/feedbacktypelist">
    </Spinner>

    <RadioGroup
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:eek:rientation="vertical">
    <RadioButton android:id="@+id/radio_red"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Male" />
    <RadioButton android:id="@+id/radio_blue"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Female" />
    </RadioGroup>

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/noh"
    />

    <EditText
    android:id="@+id/edittext"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/emailh"
    />
    <RatingBar android:id="@+id/ratingbar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:numStars="5"
    android:stepSize="1.0"/>
    </LinearLayout>
    </ScrollView>
    </LinearLayout>



     

Share This Page

Loading...