How do I make a picture seem like a radiobutton? - android

I am attempting to use my own buttons to make an overlay at the bottom of the screen. When a button is pressed it should light up (kind of how a radio button turns green when selected) and it should take you to a new activity while keeping the overlay intact.
There are five buttons that should be put on a black bar and when selected it should turn blue.
If someone could send me in the right direction I would be very grateful. Thank you

You need StateListDrawables for your buttons.

Related

click button color spread all over the screen

I have an android application where when I click on a button (made with a Textview) I have a brief change background color (black to green) before changing of activity.
Sometimes, things go wild and the green color spread on other elements.
Green color everywhere instead of black background with bottom button which can become green on click:
Actually I am not sure at all that the green come from the button on click color. It might be another reason.
How can I get rid of this bug.?
Thank you for your help
I finally forced the background color programmatically in the onCreate...

how to click Background and something should happend?

I want to click the Background of a layout (not clicking anywhere, for example in the top right) and then reproduce a sound, can i put an empty View and put an On Click to that? I think is not possible.
If is possible, there is a better way?
I want to put some invisible "buttons" at the Background because I will put an image Background with shapes, that's why It couldn't be anywhere.
Thanks and sorry for my english.
You can put a button on the right corner and apply an empty or simply transparent image as icon button.
In this way, you can choose a different behavior for each screen position.

creating an "elevated button" effect in android

I want the button to appear as though it has space in between the bottom of it's face and the canvas. Then, when clicked, it will appear as though there is no space between the button and the canvas. I know I can style the button with xml to give it those 2 looks but I don't know how to do the elevated look.
My question is how would one go about doing this?
Easiest approach to this is creating 2 background images, each fitting the state you want, then you can either set the backgrounds according the button's state, or change the backgrounds by setting an onTouchListener to the button.

Android Menu Shown Where User Clicked

I wanted to achieve the same sort of functionality found in Google Now where you can tap the cards overflow icon and a menu appears next to it with options (shown here).
Does anyone know how to implement this sort thing to achieve the same style etc?
I think you can do this by placing a listview under your button, and set its visibility to invisible.
Then place an onclicklistener on your button to turn your visibility to visible.

Arrow buttons or best recommendation on UI for traversing records like VCR buttons

I trying add arrow buttons to my app. I dont know how to show arrows on button ?
http://www.bestandroidappsreview.com/2010/09/build-vocabulary-sat-gre-buddy-android-app.html
otherwise , I want some suggestion on what would a good interface for traversing of records for next and previous ??
To show an Arrow on button, You need to have an Images for the Arrow. Usually when you use Image button, it keeps the background of the button as normal button so you can not have a look and feel like the one you have.
The Best option is use ImageView instead of Button or ImageButton and Use Arrow Images to show Arrows.

Categories

Resources