In my app I want to place a .png file and I want it to be viewed as a scrolled image at both landscape and portrait modes, please, suggest a code or example....
See Question&Answers more detail:osIn my app I want to place a .png file and I want it to be viewed as a scrolled image at both landscape and portrait modes, please, suggest a code or example....
See Question&Answers more detail:osTo make your Imageview scroll if it doesn't fit in height, you can next a ImageView inside a ScrollView in the xml, & add this parameter -
android:adjustViewBounds="true"
Here's an example -
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageView2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:background="@drawable/back" >
</ImageView>
</ScrollView>