textview.setTypeface(Typeface.DEFAULT_BOLD);
setTypeface is the Attribute textStyle.
As Shankar V added, to preserve the previously set typeface attributes you can use:
textview.setTypeface(textview.getTypeface(), Typeface.BOLD);
More Related Contents:
- How do I set the text of an Android TextView from Java?
- android on Text Change Listener
- The specified child already has a parent. You must call removeView() on the child’s parent first (Android)
- Paginating text in Android
- How to add a TextView to LinearLayout in Android
- How to change a TextView’s style at runtime
- How to add image in a TextView text?
- Create a new TextView programmatically then display it below another TextView
- How to change text of a TextView in navigation drawer header?
- Issue when using a custom font – “native typeface cannot be made”
- Why is accessing TextView of a Fragment inside Activity throwing an error
- Android: TextView automatically truncate and replace last 3 char of String
- Android: ClickableSpan in clickable TextView
- Html.ImageGetter TextView
- How can I show ellipses on my TextView if it is greater than the 1 line?
- Android BroadcastReceiver onReceive Update TextView in MainActivity
- How to get line count of textview before rendering?
- Reference variables in java [closed]
- Can't find the way to move an image (or others clickable objects)
- Why my program crash when i press back Button
- Why does my function that calls an API return an empty or null value?
- How do I make an http request using cookies on Android?
- Android M Permissions: onRequestPermissionsResult() not being called
- java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
- How to get TimeZone from android mobile?
- Sending HTTP Post Request with Android
- how to get country phone prefix from iso
- Bluetooth Connection failed “java.io.IOException: read failed, socket might closed or timeout, read ret: -1”
- How to Get JSON Array Within JSON Object?
- Android List Preferences: have summary as selected value?