First look at my own writing layout, the computer screen is too small, only to intercept a radiobutton.
Draw a horizontalscrollview first, because I want to do horizontal scrolling, then I need a horizontal layout, add a linearlayout, then I need a group of radio buttons, nested a set of Radiogroup
Explain the concept of scrollview.
1. ScrollView is a derived class of ViewGroup, and ViewGroup is a derived class of view.
2. Screen size is always limited, especially for mobile devices. When there is a lot of content that needs to be displayed, when a screen is displayed, you need to use scrolling.
3. ScrollView can only contain a direct sub-view, because ScrollView is a derived class of framelayout, typically, this direct child view is a linearlayout, in the Direct child view ( such as LinearLayout), you can include other objects.
4. ScrollView only supports vertical scrolling.
5. Horizontalscrollview except for horizontal scrolling only, others are the same as ScrollView.
6. If you want the screen to support vertical scrolling and horizontal scrolling, then let Horizontalscrollview as a direct sub-view of the ScrollView, or let ScrollView be the direct child view of the Horizontalscrollview.
The following is the layout format when used
When both vertical and horizontal scrolling are required, they can be nested with each other
Android scroll bar Simple description