Page identicator and android - android

I want to do some like this:
I want to do some like on this picture. I want to change photos na have this small circles. Is in android any widget to do that?
How I can do this?

I would use a GalleryView along with a RadioGroup where each dot is a RadioButton, then you can change the radio selected when the GalleryView is changed.
You can also style the dots and make them look whatever you want.

Related

To draw the graph like Structure along with the Radiobutton?

enter image description here
As I am beginner in android so I don't know the name of this structure exactly but i have highlighted it in rectangle shape...
I have to design this in xml is it possible to design it in xml??
If not how it can be done???
I have a screen like this a graph like structure along with 4 Radiobuttons.The data in the radio button wont be static it might change. I just want the radio buttons over the line of the graph and it might not vary if the screen size changes.
So all in all i want to implement this graph like structure with radio button does any one has any idea what this is called originally and how it will be implemented
Thanks in advance :-)

Android, Simple box inside a button?

I want to have a button like the one in the link below. How can i achieve it just by java code or xml? By the way it's going to be of a different color when pressed. I've explored similar posts but none helped. Any help appreciated.
The button which i want
Just make a View with large rectangle and add what you want(e.g. Label contains 'Number Of Students' and/or something else) in the view.
Then, add onClickListener to the View.
To change clicked colour, refer to here

How can I have a line of ToggleButtons so that just one of them can be selected?

I want to have a row of squared shaped buttons. It should act like radio buttons so that only one can be selected at a time. But it should seem like ToggleButtons. Which is having a square shape that contains the text and when the user clicks it toggles.
How can I do this? Can anyone give me a sample? I'm willing to do it in XML not
programmatically.
I want it to look like this with texts inside
EDIT: A better way to ask this question:
How can I customize a RadioButon group in a way that they look like ordinary Buttons?

How to make the button which has a kinda image( I need a detail )

I would like to know how to make the button which contains a kinda icon.
I made up a LinearLayout first and the button belongs in it.
I tried the the icon to be in the Button by using 'android:drawableLeft="#drawable/*"
The icon was placed to too Left for me.
The button is a little bit long and text and icon are small so there are some space empty.
I mean, I want the icon to be more closer to the text than it was.
Now, icon is placed to the left and text is in center.
I want them to be together with a little padding.
I tried to use 'android:drawablePadding=7dip' but it didnt work.
I so want somebody to let me know how to do it.
Have a good day.
Thank you
You can use Custom Buttons are resizes button stretch image size and below link for custom Button Tutorial link
http://www.thesecretpie.com/2010/07/creating-custom-fancy-buttons-in.html
Thanks..!
There are two techniques. I suggest you look into:
Image Buttons
Image Views
With Image view you can create a button by using an onclick listener which can be created from within your activity or from your xml layout file.

How to set selected effect when click on any image button same as iphone?

I have one screen with some image buttons and image view. when user click on these buttons or image view i need to show selected effect not replace any image instead of these. only selected dark shade effect on button or imageview same as iphone. How it's possible ?
i have not any selected image source , i checked these code ...
http://developer.android.com/reference/android/widget/ImageButton.html
But here we set another image on pressed event.
Anyone know any property of android to directly set select dark shadow
effect without image ?
Please anyone suggest how its possible ?
Thanks
you can use setAlpha method of imageView class to do this.
imgView.setAlpha(90);
http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList
Thats the link for adding images to show different state of buttons. You create a xml file for this and set this file as the background for the button.

Categories

Resources