I\'m trying to use the TextView constructor with style like this:
TextView
TextView myText = new TextView(MyActivity.this, null, R.style.my_style);
You can pass a ContextThemeWrapper to the constructor like this:
TextView myText = new TextView(new ContextThemeWrapper(MyActivity.this, R.style.my_style));