Monday, April 8, 2013

[android help] Extending ImageView. Make the scrolls work


i'm extending ImageView to reimplement OnDraw method, but i have some problems with scroll. Now I have this in XML file:



android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:fillViewport="true">
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">
android:isScrollContainer="false"
android:layout_height="3000dp"
android:layout_width="3000dp"/>




The problem is i see only vertical scroll bar in my application. I can swap ScrollView and HorizontalScrollView, but it in result i will see only horizontal scroll bar. I've tried to use this code with ImageView (loaded big picture) and i saw both scrolls there.


Can you please help me to fix this little trouble?



.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...