I've been using scroll view in my apps, but the thing is that this is the first time I've to draw something longer than the default size screen.
The XML Design screen shows a fixed 3.7inch (or larger) screen. What if I want to add more objects? How do I scroll down while designing in Eclipse?
In Android, a ScrollView is a view group that is used to make vertically scrollable views. A scroll view contains a single direct child only. In order to place multiple views in the scroll view, one needs to make a view group(like LinearLayout) as a direct child and then we can define many views inside it.
You can change screen size to custom.. try this.. click on current screen button, and select "Add Custom", then scroll down and select Custom and click "New" in right top corner.. Then write your custom size for screen and click "OK", then again "OK".. Afterward again click on your current screen button and select your custom size.. Done! Hope helped!
Be sure that this buttons is selected..
Try temporarily setting android:scrollY
on the ScrollView
. I haven't tried this but it should, in theory, work. Just remember to remove the attribute when publishing the app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With