腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
Android
RadioButton
不
居中
android
、
center
、
centering
、
android-radiobutton
、
android-radiogroup
中: <RadioGroup
android
:layout_width="match_parent"
android
:layout_marginStart="6dp"
浏览 17
提问于2020-08-19
得票数 0
回答已采纳
2
回答
如何使单选按钮和文本内联
android
、
android-radiogroup
、
android-radiobutton
><item
andr
浏览 1
提问于2014-09-13
得票数 2
5
回答
如何将文本
居中
到单选按钮
android
、
radio-button
="wrap_content"
android
:id="@+id/radioGroup1"
android
:layout_width="fill_parent"
android
:orientation="horizontal"
android
:layout_marginTop="10dp"> <
RadioButton
style="@style/ec
浏览 4
提问于2011-08-04
得票数 9
回答已采纳
2
回答
居中
重心移动单选按钮描述,而不是按钮本身
android
、
android-layout
在后面的XML中,每个
RadioButton
都被设置为
android
:gravity="center"。
android
:id="@+id/radio1"
android
:layout_width="wrap_content<
浏览 4
提问于2012-10-12
得票数 1
回答已采纳
2
回答
如何完美地水平地
居中
一个没有文本的布局的
RadioButton
?
android
、
android-layout
、
android-4.0-ice-cream-sandwich
、
android-radiobutton
我试图将RadioButtons放置在一些TextViews下面,并将它们水平地
居中
,本质上是将标签移动到按钮上方。这是我的代码:<RadioGroup
android
:layout_height="wrap_content"
android
:ori
浏览 4
提问于2014-05-14
得票数 2
回答已采纳
1
回答
primeng单选按钮活动未
居中
html
、
css
、
primeng
选择该单选按钮时,内点
不
居中
。请在附件中找到它的样子。 代码如下:.ui-
radiobutton
-box {} background-color: #fea; text-rendering: auto; -webkit-font-smoothing: antial
浏览 1
提问于2018-07-05
得票数 0
2
回答
将填充设置为单选按钮图标
android
、
radio-button
我已经创建了它的png,以便它在
Android
4上正确
居中
。我说的“
居中
”是指相对于其他有标准图标的单选按钮。然而,在
Android
2.3上,自定义图标显示偏离中心。请看图片。如何设置可绘制图标的左侧填充(或任何其他解决方案)以使其相对于标准单选按钮水平
居中
?代码的相关部分如下。我用Java代码将单选按钮添加到radioGroup中,而不是用XML语言。
radioButton
是一个包含单选按钮的数组。i是一个循环变量(我省略了循环)。带有自定义图标的单选按钮是那些满足if的
浏览 4
提问于2013-09-03
得票数 1
1
回答
使单选按钮图标
居中
android
、
radio-button
我有3个
RadioButton
,如下所示 这个。文本处于中心位置,而不是图标。我需要图标和文本都
居中
<RelativeLayout xmlns:
android
="http://schemas.
android
.com/apk/res/
android
"
android
:layout
浏览 1
提问于2019-03-11
得票数 0
2
回答
RadioButton
的图标在RadioGroup中的中心
android
、
android-layout
、
android-radiobutton
、
android-radiogroup
我正试图将
RadioButton
的按钮对准中心。这里已经回答的问题都没有解决我的问题。 <
RadioButton
android<
浏览 0
提问于2018-08-17
得票数 1
回答已采纳
1
回答
如何使单选按钮的图像
居中
?
android
、
xml
、
android-layout
我想将具有单选按钮的图像
居中
,如下所示。我正在使用这个代码。<RadioGroup
android
:layout_height="wrap_content"
android
:orientation="horizontal"> <
R
浏览 2
提问于2020-06-19
得票数 4
4
回答
编程方式的单选按钮样式
android
、
android-radiobutton
="vertical"
android
:text="
RadioButton
1"
android</e
浏览 0
提问于2017-02-24
得票数 6
1
回答
将
radioButton
可绘制图形左上角对齐
android
、
xml
、
android-layout
我想创建一个单选按钮,如下所示:我在XML布局中使用了
android
:drawableTop,但是在这种方式下,可绘制的不是水平向左对齐,而是
居中
对齐。" <
RadioButton
android
android
:drawableTop="@
android
浏览 3
提问于2014-07-08
得票数 0
4
回答
增加
RadioButton
可点击区域的大小
android
、
radio-button
、
radio-group
、
android-gui
我有一个带有2
RadioButton
的
RadioButton
(
Android
5.1),如下所示。有两个问题。首先,可点击区域(在底部的图像中以蓝色表示)不是围绕按钮(圆圈)的中心。="@+id/image"
android
:id="@+id/button1"="2"
浏览 4
提问于2018-12-20
得票数 1
回答已采纳
2
回答
java swing对齐单选按钮
java
、
swing
、
radio-button
、
alignment
、
jpanel
我想在面板中
居中
我的单选按钮,但当我
居中
时,它会根据按钮文本的长度
居中
,所以它们是
居中
的,但彼此不对齐,看起来非常丑陋。我如何修复我的代码?ButtonGroup group = new ButtonGroup(); JRadioButton
radioButton
= new JRadioButton(item);
radioButton
.setAlignmentX(Compone
浏览 2
提问于2011-05-23
得票数 1
回答已采纳
3
回答
使RadioButtons
居中
android
、
xml
、
radio-button
<RadioGroup
android
:layout_height="wrap_content" <
RadioButton
android</
浏览 3
提问于2012-09-05
得票数 2
回答已采纳
2
回答
以图像为中心制作自定义
RadioButton
android
、
android-layout
我试图让我的定制
RadioButton
看起来像这样:因此,我做了自定义的绘图,响应
RadioButton
状态并使用它作为背景。这样就好了。问题是,我无法对通过
android
:button分布设置的图像进行
居中
。
android
:gravity="center"
andr
浏览 5
提问于2016-04-05
得票数 2
回答已采纳
1
回答
不能在
Android
中并行地集中对radioGroups
android
、
layout
、
android-studio
我想说,基本上:
android
:checked="false"/>
android
:layout_width:id="@+id/
radioB
浏览 2
提问于2015-11-06
得票数 0
回答已采纳
1
回答
如何在
RadioButton
中
居中
显示图像和文本?
android
、
radio-button
、
android-relativelayout
、
centering
、
radio-group
我想让文本和图像位于文本的右侧,
居中
按钮。我找到的最好的解决方案是制作一个以TextView和ImageView为中心的可点击的RelativeLayout。这使按钮看起来像我想要的样子,但要做到这一点,并将每个RelativeLayout编程为类似于RadioGroup中的
RadioButton
,似乎有很多工作要做。
android
:id="@+id/fir
浏览 1
提问于2012-08-04
得票数 2
回答已采纳
0
回答
xamarin
android
将textview与RadioGroup水平对齐
android
、
xamarin
、
textview
、
android-radiogroup
我需要将TextView与
RadioButton
水平对齐。我的代码是这样的。<?xml version="1.0" encoding="utf-8"?"> <
RadioButton
android
:id=&quo
浏览 3
提问于2017-01-03
得票数 0
回答已采纳
3
回答
如何在
Android
中均匀地放置单选按钮?
android
、
radio-button
、
radio-group
、
cellspacing
<RadioGroup
android
:layout_width="fill_parent"
android
:layout_below="@id/clear_fields" <
RadioButton
an
浏览 0
提问于2013-03-16
得票数 29
回答已采纳
点击加载更多
相关
资讯
10个Android手机数据恢复软件,数据找回不麻烦!
Android Studio使用Kotlin时,修改代码后运行不生效问题
Google高级保护计划向第三方Android应用商店说不
唯快不破 新华三连续13年稳居中国企业级WLAN市场No.1
走你!Github 开源整合
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
智聆口语评测
活动推荐
运营活动
广告
关闭
领券