Reputation: 21015
I need to access the following -
android:textStyle(of a digital clock control)
programmatically, how do I do this?
Upvotes: 2
Views: 3387
Reputation: 4119
For a textview :
TextView tv = (TextView) findViewById(R.id.tv);
To set the typeface tv.setTypeface(tf);
To get the current typeface set use tv.getTypeface();
Upvotes: 1