Android floating view (over other views)

前端 未结 2 632
粉色の甜心
粉色の甜心 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:19

    A FrameLayout allows you to have a view overlapping another view. I'm not sure it makes sense to have them with only one child view, as you have in your example. Try having a FrameLayout at the highest level, with your "static" view as the first child element, and the floating menu as the second child.

    The developer documents have a good overview the layout types, it might help you get started.

提交回复
热议问题