You need to add your buttons “View” to an existing “ViewGroup”:
This should help: AddButton (1).java (2.4 KB)