i have a really simple question, is there a way to hide a FloatingActionButton without the animation that comes with it? One way that i was thinking was "wrapping" it with any Layout and make it GONE or INVISIBLE. But maybe there is a simple way. Do any of you have something in mind?
Thanks a lot!
use visibility property to visible or gone.
Related
I want to change the position of my framelayout on click of a button. Can anyone suggest me the best way to do this?
Any help will be grateful.
I've done something similar to this. Now I want to be able to remove the seekbar from the screen once im done with it. I want to do this simply by clicking somewhere else(anywhere but the seekbar) on the screen. Probably I need some kind of a clicklistener but have no idea how to implement something like this. Any tips, suggestions are welcome.
EDIT:
Just to clarify, by removing I mean hiding the seekbar and not neccessarily deleting it. And I already tried the INVISIBLE thing which isn't the answer to my question.
Below is my UI
What I need is when the user clicks on any button in the footer menu(gallery), the content(activity) area will change depend on the menu. but it wont effect header and footer area.
Different content has its own layout and function and controlled by it own activity class. How can I do like this? Is TabHosh can do it? Or have other solution?
Sorry for my bad english. Hope u guys understand what I'm talking about.
Thanks.
You can use this:
https://github.com/astuetz/PagerSlidingTabStrip
Screenshot:
I need to create a list of buttons like these, but I don't know how to implement this, there are few options make buttons, but I don't think I can make buttons like this, if I use textview will it work? Is there any other option?
Is there any gui editor for android? Or can i make rectangle class and inside that class someone click to fire the event?
You can make a button appear anyway you want. See these examples:
http://inphamousdevelopment.wordpress.com/2010/10/05/creating-easy-custom-buttons-in-android/
http://androidcookbook.oreilly.com/Recipe.seam;jsessionid=0A9B6292F90D72D302B58DD4680BC0BC?recipeId=3307&recipeFrom=ViewTOC
Custom buttons in a LinearLayout would certainly do the trick. But when I see that screen shot, I also think ListView. That might be an interesting and scalable way to lay these out.
Can anyone tell me what control or how do you create the pop-up effect used in these images to display the legend?
The screenshots are taken from an app called FlyOKC.
Any help is greatly appreciated, thank you.
This is not exactly a custom dialog. But, yes it is still a customized view. And it is more or less called Quick Action Dialog in android. I would suggest you to follow the tutorials below for generating an exactly same popover (or even better) with Android. Check the screenshot also.
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
http://www.androidpatterns.com/uap_pattern/quick-actions (Pattern Reference)
That's certainly using a custom version of a dialog. The idea is to implement your layout in a xml and inflate it in a dialog. There's a lot of tutorials around, try that one.
Actually, that can be achieved by using RelativeLayout and switching the legend view's visible state between View.VISIBLE and View.GONE in button's click handler.
To get the exact animation you'll need to jump some hoops.
Here are related threads:
How does one Animate Layout properties of ViewGroups?
How do I animate View.setVisibility(GONE)
Also, I think another (and possibly easier) way would be to use Fragments API with transition effects, in which case this is the thread to read:
Animate the transition between fragments