Advertisement
kimcy929

ScrollView + HorizontalScrollView

Oct 21st, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.59 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent" >
  5.  
  6.     <ScrollView
  7.        android:id="@+id/scrollView1"
  8.        android:layout_width="wrap_content"
  9.        android:layout_height="match_parent" >
  10.  
  11.         <LinearLayout
  12.            android:layout_width="match_parent"
  13.            android:layout_height="match_parent"
  14.            android:orientation="vertical" >
  15.  
  16.             <HorizontalScrollView
  17.                android:id="@+id/horizontalScrollView1"
  18.                android:layout_width="match_parent"
  19.                android:layout_height="match_parent" >
  20.  
  21.                 <LinearLayout
  22.                    android:layout_width="wrap_content"
  23.                    android:layout_height="match_parent"
  24.                    android:orientation="horizontal" >
  25.  
  26.                     <ImageView
  27.                        android:id="@+id/image"
  28.                        android:layout_width="match_parent"
  29.                        android:layout_height="match_parent"
  30.                        android:scaleType="fitXY"
  31.                        android:src="@drawable/full_hd_image" />
  32.                 </LinearLayout>
  33.             </HorizontalScrollView>
  34.  
  35.             <ImageView
  36.                android:layout_width="match_parent"
  37.                android:layout_height="match_parent"
  38.                android:scaleType="fitXY"
  39.                android:src="@drawable/full_hd_image" />
  40.         </LinearLayout>
  41.     </ScrollView>
  42.  
  43.  
  44. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement