Slider in Android App(Android 应用程序中的滑块)
问题描述
我正在做一个项目,该项目要求只有在半透明屏幕向上滑动后才能按下按钮.这允许访问主按钮(按我,在图片中).我希望顶部屏幕是半透明的,以便用户可以看到它后面的按钮,但我也希望在顶部屏幕上有按钮(绿色按钮 1、2 和 3).有没有这方面的好教程?我看过,但没有发现很多与很多相关的东西.如果您有任何建议,请告诉我.我还想知道这有多困难,因为我是 Java/Android 新手.这是让您更好地了解我想要什么的插图:
I'm working on a project that requires a button to only be pressed once a translucent screen has been slid up. This allows for access to the main button (Press Me, in the picture). I would like for the top screen to be translucent so a user can see the button behind it, but I would also like to have buttons (green buttons 1, 2, and 3) on the top screen. Are there any good tutorials on this? I have looked, but haven't found much that relates a whole lot. If you have any sugguestions please let me know. I'd also like to know how difficult this is since I'm new to Java/Android. Here's the illustration to give you a better idea of what I want:
这类似于 iPhone 的屏幕可以从顶部拉下,但这个屏幕始终是向下的并且可以向上移动.如果您有任何建议,请告诉我.
This would work similar to how the iPhone has the screen that can be pulled down from the top, but this one is always down and can be moved upward. Let me know if you have any suggestions.
谢谢!
推荐答案
我已经根据我的要求尝试了这个演示,它对我有很大帮助:Android-Slider Demo
I have try this demo for My requirement and it helps me a lot: Android-Slider Demo
只要根据你的目的尝试它,它就会对你有所帮助.
Just Try it for your purpose and it will surly help you.
享受.:)
这篇关于Android 应用程序中的滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android 应用程序中的滑块


- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01
- Eclipse 的最佳 XML 编辑器 2022-01-01
- 如何指定 CORS 的响应标头? 2022-01-01
- 未找到/usr/local/lib 中的库 2022-01-01
- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- 获取数字的最后一位 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01
- 转换 ldap 日期 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01