How to use ScrollView in Android?

前端 未结 8 1635
抹茶落季
抹茶落季 2020-11-22 11:41

I have an XML layout file, but the text is more than fits into the screen size. What do I need to do in order to make a ScrollView?



        
8条回答
  •  一个人的身影
    2020-11-22 12:27

    As said above you can put it inside a ScrollView... and if you want the Scroll View to be horizontal put it inside HorizontalScrollView... and if you want your component (or layout) to support both put inside both of them like this:

      
            
                
            
        
    

    and with setting the layout_width and layout_height ofcourse.

提交回复
热议问题