简体   繁体   English

适用于Android的自定义弹出窗口或微调器

[英]Custom pop up or spinner for android

i found a design in IOS that i really like but i cant figure out how to do it in android i have tried doing a custom spinner and am having a hard time with it and i thought of using a pop up but i need to be able to put clickable button in the pop up, so i think a spinner is my best change. 我在IOS中找到了一个我真的很喜欢的设计,但是我无法弄清楚如何在android中做到这一点。我尝试做一个自定义微调器,但遇到了麻烦,我想使用弹出式窗口,但是我需要能够将可点击按钮放在弹出窗口中,所以我认为微调器是我最好的选择。 I am going to post a picture of what i am trying to accomplish, specifically on the little half box on the top of the drop down! 我将张贴一张我要完成的图片,特别是在下拉菜单顶部的小半框上! Thanks would really Appreciate some help thanks!!!! 谢谢,真的感谢您的帮助!!!! ![enter image description here][1] Also i have seen this in Android as well so i know it can be done. ![在此处输入图片描述] [1]我也已经在Android中看到了这一点,所以我知道可以做到这一点。 http://i.imgur.com/L1ftrSU.png http://i.imgur.com/L1ftrSU.png

You can use OptionMenu. 您可以使用OptionMenu。 Refer to this link ! 请参考此链接

It's action you showed in your image is called QuickAction, there are many tutorials on how to create one: 您在图片中显示的动作称为QuickAction,其中有许多关于如何创建动作的教程:

  1. Try the NewQuickAction lib, it has a number of modes, and one of them will give you exactly the same layout as your sample image. 尝试NewQuickAction lib,它具有多种模式,其中一种将为您提供与示例图像完全相同的布局。 Here 'sa quick tutorial for using the library. 这里是使用该库的快速教程。 Have used this lib for 2 years and worked quite well. 使用此库已有2年,并且运行良好。
  2. This tutorial offers another method to accomplish the same thing, worth checking out as well. 本教程提供了另一种完成同一任务的方法,同样值得一试。

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

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