I want to make options select design with two radio buttons selections. Like image below. Please help to do this.
Asked
Active
Viewed 737 times
0
-
can you explain a bit more – Kailash Dabhi Jan 16 '14 at 08:27
-
@Kailash Dabhi, it means that label text on the left and radio button icon on the right side. – user3098538 Jan 16 '14 at 08:34
-
3Try to use for "Option1" TextView component, and create RadioButton with no label. – OFFmind Jan 16 '14 at 08:38
-
Use two text view and in front of that text view use radio button with no text – jyomin Jan 16 '14 at 08:39
-
@offmind is right go with that – Kailash Dabhi Jan 16 '14 at 09:04
-
The answer is [here](http://stackoverflow.com/questions/18914792/how-to-put-the-text-on-the-left-of-a-radio-button-in-android) – Phantômaxx Jan 16 '14 at 09:34
1 Answers
1
AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
builder.setSingleChoiceItems(new CharSequence[] {"Item1", "Item2"}, 0, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
}
});
builder.create().show();
Here you can create a dialog with radio button and text

SKT
- 1,821
- 1
- 20
- 32