Android: make a scrollable custom view

前端 未结 3 1530
春和景丽
春和景丽 2021-01-02 13:28

I\'ve rolled my own custom view and can draw to the screen alright, but what I\'d really like to do is set the measuredHeigh of the screen to, say, 1000px and let the user s

3条回答
  •  无人及你
    2021-01-02 14:20

    Just put your view in a ScrollView!

    Note that the ScrollWiew should be the root node (here it's your LinearLayout)

提交回复
热议问题