Unable to see completed view layout in Android Studio

前端 未结 15 1589
不思量自难忘°
不思量自难忘° 2020-12-12 14:37

I am creating a vertical LinearLayout that will be displayed in a vertical ScrollView. I can\'t find a way in Android Studio to see the portion of the LinearLayout that is

15条回答
  •  佛祖请我去吃肉
    2020-12-12 15:10

    You can use scrollY attribute to scroll the ScrollView in the preview. Using scrollY attribute with tools namespace will only scroll the view in the display and not in the actual app. And make sure you use px as the unit with scrollY attribute.

    tools:scrollY="150px"
    

提交回复
热议问题