This article describes the method of implementing Activity horizontal and vertical scroll bars on Android. Share it for your reference, as follows:
<ScrollView xmlns:andro android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" > <HorizontalScrollView android:layout_width="wrap_content" android:layout_height="wrap_content" > <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > </LinearLayout> </HorizontalScrollView> </ScrollView>
The root tag is the sub-tag under the ScrollView is the HorizontalScrollView, and then the layout under the HorizontalScrollView is your own layout.
Ps: Scrollview and HorizontalScrollView can only be embedded in one tag
For more information about Android related content, please check out the topic of this site:Android programming activity operation skills summary》、《Android View View Tips Summary》、《Summary of Android's SQLite database skills》、《Summary of Android operating json format data skills》、《Android database operation skills summary》、《Android file operation skills summary》、《A summary of SD card operation methods for Android programming and development》、《Android development introduction and advanced tutorial》、《Android resource operation skills summary"and"Android control usage summary》
I hope this article will be helpful to everyone's Android programming design.