title: VertialScrollLayout in Android
body: <p>I was trying to use Scroll Layout in Android. I want my views to get scrolled vertically. But I could see only HorizontalScrollLayout. What do I do If I want Vertical?</p>
  
  <p>Here is the Code </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent" android:layout_height="match_parent"
      android:id="@+id/scrollView"
      android:layout_centerVertical="true"
      android:orientation="vertical"
      android:background="@color/abc_input_method_navigation_guard"&gt;
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:layout_gravity="center_horizontal"&gt;
          &lt;ImageButton
              android:layout_width="300dp"
              android:layout_height="200dp"
              android:layout_gravity="center"
              android:src="@drawable/lion"
              android:background="@color/abc_input_method_navigation_guard"
              android:scaleType="fitXY"
              android:padding="20dp"
  
              android:id="@+id/image1" /&gt;
          &lt;ImageButton
              android:layout_width="300dp"
              android:layout_height="200dp"
              android:layout_gravity="center"
              android:src="@drawable/lion"
              android:background="@color/abc_input_method_navigation_guard"
              android:scaleType="fitXY"
              android:padding="20dp"
  
              android:id="@+id/image2" /&gt;
  
      &lt;/LinearLayout&gt;
  
  
  
  &lt;/HorizontalScrollView&gt;
  
  Can anyone suggest me the solution?
  </code></pre>