no gravity for scrollview. how to make content inside scrollview as center

后端 未结 7 919
刺人心
刺人心 2020-12-07 09:35

I want the content inside the scrollView as center.



        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 10:01

    For @Patrick_Boss - what stopped the content from cutting of in my application was to change the gravity and layout_gravity to center_horizontal for the LinearLayout.

    It worked for me...but not sure if it will work for you.

    Modification of @Ghost's answer -

    
    
    
    
        
    
            

提交回复
热议问题