Search code examples
androideclipselayoutandroid-2.3-gingerbreadvertical-scrolling

In Eclipse, can I make the layout scrollable if my minimum SDK is 10?


My physical phone runs Android 2.3.3., so I'm developing with a minimum SDK of 10. According to the project creation wizard in Eclipse, that's apparently just one short of being able to choose a Navigation Type besides None.

I want my new app to be scrollable -- how do I do this? For example, can I put my content inside a scrollable element inside the layout parent element?


Solution

  • Just use a ScrollView as parent of your layout.

    <ScrollView>
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
    
         <LinearLayout> 
             // your Layout
         </LinearLayout>
    
     </ScrollView>