Android Layout

Responsive Mobile Ready WebPage Using ViewPort Meta Tag Example

When you create a html web page, of course you want it to be viewable and user friendly in all screen size devices include mobile device, PC and tablet also. But before viewport meta tag is introduced in html, mobile device can not display the web page as good as desktop. This article will introduce …

Responsive Mobile Ready WebPage Using ViewPort Meta Tag Example Read More »

Android Absolute Layout Example

Android AbsoluteLayout is used to layout ui components with absolute x, y axis coordinate value. For example if you put a button widget in AbsoluteLayout, you can set the button’s layout_x, and layout_y property value to place the button in specific location. This example will show you how to use it.

Android Gridlayout Example Programmatically

android.widget.GridLayout is a layout manager used to arrange child views in grid. You can specify how much columns and rows the grid have use it’s rowCount or columnCount property. You can change gridlayout size by specify it’s layout_margin property. You can even use child view’s layout_rowSpan or layout_columnSpan property to merge nearby rows or columns.