Android 应用程序中的滑块

Slider in Android App(Android 应用程序中的滑块)

本文介绍了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 应用程序中的滑块

基础教程推荐