How to create and apply styles through programming in android? -


I'm new to the Android app development. I have to change the existing style on runtime or to create a new style at runtime and I have to apply it for my buttons and text view. Can anyone suggest me?

There are several ways to do this (most of these are provided by Superclasses): setTextColor to change the foreground color

  • setBackgroundResource (int)
  • setTypeface

  • Code> button and more, because most of them are extending to the TextView class, I suggest : RTFM ... just joking ... looking at the available tasks Read the document to.


Comments