[英]Float listview over other views
what i want to achieve is a floating listview above other views(like floating action button)我想要实现的是其他视图上方的浮动列表视图(如浮动操作按钮)
Is it even possible (something like spinner view which pops up over other views) If yes how do i implement it?甚至有可能(类似于弹出其他视图的微调视图)如果是,我该如何实现它?
You could use either PopupWindow
or DialogFragment
, depending on your requirements.您可以使用PopupWindow
或DialogFragment
,具体取决于您的要求。
Alternatively, you could also use FrameLayout
to achieve the same effect.或者,您也可以使用FrameLayout
来实现相同的效果。 The first child in the FrameLayout
(presumably your ListView
) would be the one displayed on top of the others. FrameLayout
的第一个孩子(大概是您的ListView
)将是显示在其他孩子之上的那个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.