Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ScrollView - How to scroll down while designing layout in Eclipse?

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?

like image 203
Asim Avatar asked Oct 22 '12 08:10

Asim


People also ask

What is scroll view layout?

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.


2 Answers

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.. enter image description here

like image 167
Henrik Avatar answered Oct 11 '22 08:10

Henrik


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.

like image 25
Felix Avatar answered Oct 11 '22 06:10

Felix