After reading the very helpful answer here: Why does LayoutInflater ignore the layout_width and layout_height layout parameters I've specified?, one thing I would like to add is to have a button (or any other View for that matter) be placed at a specific point on the screen.
After reading the very helpful answer here: Why does LayoutInflater ignore the layout_width and
Share
You can use FrameLayout and specify margins for objects using parameters
android:layout_marginRight,android:layout_marginBottomand so on. This will help you to set view position relative to the parent view.You can also use AbsoluteLayout, but it is discouraged to do so. AbsoluteLayout was used when Android was supposed to work with the screens of a fixed resolution, and when this changed with Android 1.6, AbsoluteLayout became deprecated since it is inflexible and can’t work properly on screens with different resolutions.