You are using linearlayout in android, which allows you to place child objects in vertical or horizontal order. You put the buttons inside the line output.
You have to go through tuorial in Android layouts. AbsoluteLayout in the link is falling apart.
My knowledge of the wrapper panel is based only on the link you linked, since I did not work with WPF. This is from what I understood. Android does not have a layout for the crawl panel, where child views go to the next line when there is less space. Your options
use scrollviews to scroll if the views are larger than the screen.
Use the layout_weight property for childs views in linearlayout mode. This will make the view resize to resize.
Create your own layout by expanding the ViewGroup class, where you measure child views and determine their position based on the available screen width.
The first 2 options are not quite what you want. These are alternative approaches to what the android provides. But if you need the exact thing, you need to do it yourself.
source share