Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

What is this called? Sliding screen

  • 08-01-2013 05:35PM
    #1
    Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭


    This app https://play.google.com/store/apps/details?id=slickdevlabs.apps.usbtoserialterm
    When I hit the connect button the settings slide off to the side and disappear, the screen resizes. I can hit the settings button to get it to slide back out and in also.

    What is this called? I have similar settings I want to display at the start of the activity then I would like them to go away after I use them etc.


Comments

  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    This app https://play.google.com/store/apps/details?id=slickdevlabs.apps.usbtoserialterm
    When I hit the connect button the settings slide off to the side and disappear, the screen resizes. I can hit the settings button to get it to slide back out and in also.

    What is this called? I have similar settings I want to display at the start of the activity then I would like them to go away after I use them etc.

    This should help -

    http://stackoverflow.com/questions/11234375/how-did-google-manage-to-do-this-slide-actionbar-in-android-application/11367825#11367825


  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    Thanks that looks great. Will try it out.

    Would it be less convoluted if I just hit a button and the options disappeared, no sliding etc?
    All I want is for them to be there at the start and then feck off after I press them.


  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    Thanks that looks great. Will try it out.

    Would it be less convoluted if I just hit a button and the options disappeared, no sliding etc?
    All I want is for them to be there at the start and then feck off after I press them.

    Up to you really and the design of your app, I think you could do that easily if your using fragments.


  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    Guess I'll try fragments, at the moment the settings are jsut at the top of the screen formatted by a linearlayout, so that should be bettered.


  • Moderators, Science, Health & Environment Moderators, Social & Fun Moderators, Society & Culture Moderators Posts: 60,119 Mod ✭✭✭✭Tar.Aldarion


    If anybody else wants to know, View.setVisibility(GONE) is a very easy way of doing this. I can try and make that slower or animate it now.


  • Advertisement
Advertisement