简体   繁体   English

Android RadioButtons

[英]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: 如何在android上的radioGroup中显示四个单选按钮,以便单选按钮的位置如下:

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. 您可以使用相对布局来定位按钮和您在自己的逻辑中定义的单选按钮的其他属性,在Java代码中为简单按钮定义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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