- <ScrollView
- android:id="@+id/scrollview1"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_alignparentleft="true"
- android:layout_below="@+id/linearlayout2"
- android:background="@drawable/repeat_bg"
- android:paddingbottom="5DP" >
- <linearlayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingleft="10DP"
- android:paddingright="10DP"
- android:focusable="true"
- android:focusableintouchmode="true"
- android:paddingtop="15DP" >
- <!--above these two lines is control ScrollView
- android:focusable="true"
- android:focusableintouchmode="true"
- Not automatic key!!-->
- <linearlayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical" >
- <ListView
- android:id="@+id/lv_gc"
- android:layout_margintop="5DP"
- android:layout_width="match_parent"
- android:layout_height="20DP"
- android:background="#aaffffff"
- android:divider="#666"
- android:scrollbars="none|vertical" >
- </ListView>
- </linearlayout>
- </linearlayout>
- </ScrollView>
Resolves automatic scrolling after controls in ScrollView are disabled in Android