To draw the graph like Structure along with the Radiobutton? - android

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 :-)

Related

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 create an UI in circular fashion in Android?

I need to create a dynamic UI for an android app. For example, I need to create clickable buttons on the circumference of a circle with a main button at the center. The user should be able to add/delete/modify the number of nodes/buttons on the circumference of the circle with settings option.
Till now I have worked on static UI using xml layout. This time I have to start working dynamic model. How can I proceed?
Uploaded sample UI how I would like to build. As shown in figure I should be able to create a dynamic UI, user should be able to click on the boxes, should be able to add few more boxes which should auto adjust its position with respect to other boxes. When I click on the box it should bring another activity with different UI with the selected box populated to center surrounded by related data in similar format shown in figure.

Custom Drop down like layout

I want a custom layout drop down box for my app as if like i am on my homepage and i press a button that's in center of page and then this layout should appear after i press that button, i tried several other and searched the internet but i was unable to get an idea on how to make a drop down box like this :
this shows like two kinds of layout first one we pick the date like 12 months in first column , then 1-31 numbers and then the year from 2001-2012, i don't get and idea that how can make this effect like glassy one i wanted to make like exact same layout as shown here, can any one please suggest me how to implement that coding will me much helpful.
There is an example you can refer this one
http://code.google.com/p/android-wheel/
you can get source from here for that
http://android-wheel.googlecode.com/svn/trunk/
another example
https://github.com/sys1yagi/AndroidPractice/tree/master/DrumPicker/trunk

Android: How to change a button so that it has a graphic image embedded on it

I have a program that I'm writing in Android using Eclipse. It has an array of buttons (4x4).
I would like to have the buttons contain a user defined image (perhaps some filled circles).
How do I go about doing this?
Thanks
Mike
http://developer.android.com/resources/tutorials/views/hello-formstuff.html#CustomButton
Should be straight forward enough to follow.. if the image is chosen by the uesr, you will just have to change the image path on a button press or something similar

Categories

Resources