<HorizontalScrollView
android:id="@+id/assets_history_chart_scroll_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/assets_history_chart_listview">
</ListView>
</LinearLayout>
</HorizontalScrollView>
ListView要使用系统原来的,不能使用自定义的
在对应的Activity中重写这个方法
class AssetsHistoryChartActivity extends AbstractActivity implements View.OnTouchListener
@Override
public boolean onTouch(View v, MotionEvent event) {
return super.onTouch(v, event);
}