This example will show you how to use the android.widget.TableLayout and android.widget.Button to implement an android calculator application. It is a regular calculator which can execute +, –, *, and / operation.
If you want to display data in table format just like the Html table in the android application, you can use TableLayout and TableRow. TableLayout behaves like an Html tag table and TableRow behaves like tag tr. Each TableRow can contain multiple android UI components, each UI component is displayed in a table row column.