question

Shifty Geezer avatar image
Shifty Geezer asked

How to use scrollview?

I have an app working fine on Android that I want to port to Kindle. I have a simple layout with a scrollview, linearlayout, and imageview+button. The image is scaled to the width of the display and the scrollview allows it to be scrolled, ending on the button pressed to continue. However, it is not drawn correctly on a 600x1024 screen.The imageview is asymmetrically scaled to the viewport, breaking aspect ratio and scrolling, and there's no room for the button. How do I get scrollviews to work correctly on a Kindle?
fire tablet
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Shifty Geezer avatar image
Shifty Geezer answered
Here's my layout code if that helps:
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
Hi Shifty Geezer, Scrollview should always wrap content example: android:layout_height="wrap_content" if the android:layout_height="fill_parent" --- view height will become constant and won't scroll. Try this, Hope this info helps.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.