HomeBlogDynamically created button doesn't apply style correctly in android ?Problem and SolutionsDynamically created button doesn't apply style correctly in android ?By M.K. Verma · 4 May 2022Width and height can't be set via themes at runtime. You need to set them in layout params, and use that when you add it to the parent view.Share this:CommentsLeave a commentPost