简体   繁体   中英

Android RadioButtons

How can I display four radio buttons which are inside a radioGroup on android such that the positions of the radio buttons are as follow:

top left top right bottom left bottom right

Go to this link Images of Radio Button -> Download images of Radio button (both presses and unpressed) -> set unpressed Radio button image as background image of button widget and onclick change image of button to pressed Radio button image.

You can use Relative layout the to position the button and other properties of Radio button you have define in your own logic in Java code for simple buttons.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM