1

我的horizo​​ntalScrollView 显示为noraml。现在,我锁定屏幕,然后打开它,horizo​​ntalScrollView 消失了。但是在姜饼上它运行良好。是什么原因?有人可以帮助我吗?

这是java代码:

    View view = LayoutInflater.from(this).inflate(R.layout.shop_bottom_tips, null);
    RelativeLayout shopLayout (RelativeLayout)view.findViewById(R.id.shop_tips_layout_id);
    AsyncImageView imageView = (AsyncImageView) view.findViewById(R.id.shop_tips_img_id);
    for(...) {
      //add child to the view.
   }

布局代码:

<HorizontalScrollView
    android:id="@+id/horizontalScrollView"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:scrollbars="none" >

    <LinearLayout
        android:id="@+id/poster_shop_layout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="horizontal" >
    </LinearLayout>
</HorizontalScrollView>
4

0 回答 0