【问题标题】:Prevent views from overflowing防止视图溢出
【发布时间】:2014-03-20 21:14:10
【问题描述】:

我有一个 RadioGroup 和 8 个 RadioButtons 和水平方向。屏幕可容纳 7 个RadioButtons 而不拥塞。但是对于第 8 个RadioButton,只显示了一半。如何让它出现在下一行?

【问题讨论】:

  • 捕获模拟器图像并显示
  • 你能发布你的xml吗?
  • 将父布局设置为仅在宽度上匹配父布局,而不是包装内容,它应该被移动。

标签: android


【解决方案1】:

使用选择器创建自定义单选按钮。 widthOfButton = screenWidth/NoOfRadioButton

访问链接How can I set the width of radio buttons to change with regards to screen size? (android)

希望你的问题会很快解决。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-26
    • 2018-06-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多