
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<ImageView
android:id="@+id/lang_arrow_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginLeft="0dp"
android:contentDescription="@string/imagecontent"
android:src="@drawable/arrow_left" />
<HorizontalScrollView
android:id="@+id/lang_scroll"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:clipChildren="true"
android:scrollbars="none" >
<LinearLayout
android:id="@+id/lang_scroll_con"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal">
</LinearLayout>
</HorizontalScrollView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="0dp"
android:contentDescription="@string/imagecontent"
android:src="@drawable/arrow_right" />
</RelativeLayout>
我想要的效果是,两侧的箭头始终在最前端显示,中间的HScrV中的内容可以在下面滑动,为什么这样不可以呢?应该怎样做呢?谢谢