How to create a dynamic button view like this ?
Here +Add button is a static one. Other buttons should be dynamically created as in this picture. According to the retrieved data from a database this have t be created and with the add button it could add new buttons.

In your xml file have a linear layout of orientation Vertical.
In the java class file declare it as
ViewGroup lr = (ViewGroup)findViewVyId(R.id.dd)the first for loop decides how many layouts to be in vertical order and the second for loop decides how many button inside the linear layout in Horizontal order. The
main_cntis used to get an id for each buttonThe xml file of child is where i have place the Add(large button)