Slider in Android App

后端 未结 2 1190
梦如初夏
梦如初夏 2021-02-10 14:28

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 pictu

相关标签:
2条回答
  • 2021-02-10 14:42

    I have created something like you are trying to do. Sorry I can't post the code since it's part of the company I work for. However here is what I did.

    I copied the SlidingDrawer.java source to my project and made sure it was first working as expected. I than started modifying it to slide from the top and not the bottom. Took me a little time but it was well worth the learning experience.

    Good luck!

    0 讨论(0)
  • 2021-02-10 14:49

    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.

    Enjoy. :)

    0 讨论(0)
提交回复
热议问题