I am trying to implement a dynamic button inflation for my Android application, based on an input specified by the user in real time. When clicked, button changes its color
call invalidate on linear layout after adding the view,
linearLayout.addView(buttonLayout); linearLayout.invalidate();