Slider in Android App

后端 未结 2 1220
萌比男神i
萌比男神i 2021-02-10 14:30

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 15:01

    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!

提交回复
热议问题