Android floating view (over other views)

前端 未结 2 638
粉色の甜心
粉色の甜心 2020-12-28 16:12

I\'ve been messing around with this for a few days now, hopefully someone here can lend me a hand.

I have a simple two-column layout, the left side is a navigation b

2条回答
  •  感动是毒
    2020-12-28 16:23

    RelativeLayout is what you want.
    FrameLayout must only have one child, and is therefore, usually, only used for a placeholder where other layouts come later (such as the main frame of the activity).
    AbsoluteLayout is deprecated, and should not be used.

    RelativeLayout allows the views to overlap, and allows doing, pretty much, anything you want.

提交回复
热议问题