Android: can height of SlidingDrawer be set with wrap_content?

后端 未结 6 2088
花落未央
花落未央 2020-11-27 10:38

I\'m trying to implement a SlidingDrawer that will occupy the full screen width, but whose height is determined dynamically by its contents: in other words, sta

6条回答
  •  渐次进展
    2020-11-27 11:33

    unfortunately you can't set the height, but rather the opposite of that. the topOffset attribute will determine how tall to make the sliding drawer, but its what to shave off rather than how tall it will be.

提交回复
热议问题