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">

    
    
    
    评论

报告相同问题?

悬赏问题

  • ¥50 comsol稳态求解器 找不到解,奇异矩阵有1个空方程返回的解不收敛。没有返回所有参数步长;pid控制
  • ¥15 怎么让wx群机器人发送音乐
  • ¥15 fesafe材料库问题
  • ¥35 beats蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功