lovekui10me 2015-07-14 08:06 采纳率: 0%
浏览 2628

HorizontalScrollView fillViewport 失效

这个是我的布局<HorizontalScrollView 
    android:id="@+id/h_view"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
          android:layout_gravity="center_horizontal" 
    android:fillViewport="true"
    android:scrollbars="none"
    >

android:id="@+id/radioGroup_yl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
>

</RadioGroup>
           </HorizontalScrollView> 
                我再代码里动态加载 RadioButton 到RadioGroup时 HorizontalScrollView 的fillViewport 失效,不能满屏;但是如果是写死在布局文件里的时候是可以满屏的
  • 写回答

3条回答 默认 最新

  • boy_nihao 2015-07-15 08:50
    关注

    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true">
    android:id="@+id/radio"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

    
    
    
    评论

报告相同问题?

悬赏问题

  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。
  • ¥15 livecharts wpf piechart 属性
  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了