简体   繁体   English

Android(Xamarin C#或Java)中的下拉菜单

[英]Dropdown menu in Android (Xamarin C# or Java)

I am trying to achieve this design in android 我正在尝试在android中实现此设计

下拉式设计

I am actually working with Xamarin.Forms, but I haven't been able to find a cross-platform way to do this so I'm going with renderers. 我实际上正在使用Xamarin.Forms,但是我无法找到一种跨平台的方法来执行此操作,因此我将使用渲染器。 I figure, if I can find a solution for android (even in java), then I can port it to C# for Xamarin and use it in a renderer. 我认为,如果我能找到适用于android的解决方案(即使在Java中),那么我也可以将其移植到Xamarin的C#并在渲染器中使用。

The problem now is I have no clue as to how to achieve this in native android either. 现在的问题是我也不知道如何在本机android中实现这一目标。

More info : The popup is meant to show when the filter icon is clicked. 更多信息 :弹出窗口旨在显示单击过滤器图标的时间。 The SearchView and the tabbedPage have been implemented already. SearchView和tabbedPage已经实现。

You can use a SlideOverKit plugin where you can create a slide over popup from top and there you can implement your design. 您可以使用SlideOverKit插件,在其中可以从顶部创建弹出式幻灯片,然后可以在其中实现设计。 This is a cross platform plugin 这是一个跨平台插件

SlideOverKit SlideOverKit

Complete details are available in the below link 以下链接提供了完整的详细信息

Details 细节

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM