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 应用程序中的滑块
基础教程推荐
- 首次使用 Hadoop,MapReduce Job 不运行 Reduce Phase 2022-01-01
- 在螺旋中写一个字符串 2022-01-01
- 如何使用 Eclipse 检查调试符号状态? 2022-01-01
- 如何对 HashSet 进行排序? 2022-01-01
- Java 中保存最后 N 个元素的大小受限队列 2022-01-01
- 如何在不安装整个 WTP 包的情况下将 Tomcat 8 添加到 Eclipse Kepler 2022-01-01
- 如何使用 Stream 在集合中拆分奇数和偶数以及两者的总和 2022-01-01
- 如何强制对超级方法进行多态调用? 2022-01-01
- Spring Boot Freemarker从2.2.0升级失败 2022-01-01
- 由于对所需库 rt.jar 的限制,对类的访问限制? 2022-01-01