How to set a maximum height with wrap content in android?

前端 未结 7 2385
你的背包
你的背包 2020-12-09 02:01

In android, how can you create a scroll view that\'s got a max height, and wrap contents, basically it wraps the content vertically, but has a maximum height?

I trie

7条回答
  •  孤城傲影
    2020-12-09 02:47

    for set scrollview height you must use 2 linerlayout inside together and then set scrool view as them child then set middle linerlayout layout:height for limit scrollview height.

提交回复
热议问题