当我在android 4.1上锁定屏幕时,Horizo​​ntalScrollView消失了

时间:2012-10-22 09:24:36

标签: horizontalscrollview lockscreen

我的horizo​​ntalScrollView显示为noraml.now,我锁定屏幕,然后打开它,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>

0 个答案:

没有答案
相关问题