For example:
TextView textView = new TextView(PhotoActivity.this);
textView.setText("Photo not found.");
How to set the style?
textView.set... ???
For styling TextView
programmatically you must have a style inheriting a TextAppearance
style, and you can apply it using the following:
TextViewCompat.setTextAppearance(statusLinkTextView, R.style.YourTextAppearanceStyle);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With