我的horizontalScrollView显示为noraml.now,我锁定屏幕,然后打开它,horizontalScrollView就消失了。但是姜饼上的效果很好。原因是什么?有谁可以帮助我?
这是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>