MAD Chapter 3
MAD Chapter 3
MAD Chapter 3
Activities, Services, Content providers,
and Broadcast receivers.
Follow the following steps to modify the Android application we created in Hello
World
Following is the content of the modified main activity
file src/com.example.demo/MainActivity.java. This file can include each of the
fundamental lifecycle methods.
Following will be the content of res/layout/activity_main.xml file −
Following will be the content of res/values/strings.xml to define two new constants
−
Table Layout
Android TableLayout going to be arranged groups of views into rows and columns. You will
use the <TableRow> element to build a row in the table. Each row has zero or more cells;
each cell can hold one View object.