Slider in Android App

后端 未结 2 1189
梦如初夏
梦如初夏 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!

提交回复
热议问题