This example will show you how to use 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 html table in android application, you can use TableLayout and TableRow. TableLayout behaves like html tag table and TableRow like tag tr. Each TableRow can contain multiple android UI components, each UI component is displayed in a table row column.