0

I'm facing an issue with android where the textviews and buttons are not getting the textStyle bold in several activities. I have checked the theme and compared with other activities and all look the same. However The textStyle bold is not working. I have tried using via code and via XML. Is there any way to trace, debug and check why the textStyle bold is not applied on several activities?

I have tried the following

textView.setTypeface(null, Typeface.BOLD);

and also

<TextView
                android:id="@+id/header_view"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerHorizontal="true"
                android:gravity="center"
                android:text="Continue"
                android:textStyle="bold" />

Both didn't work for me. Can anyone help why its not working in several activities?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
User 99x
  • 1,011
  • 1
  • 13
  • 39

1 Answers1

1
android:textStyle="bold"

this command always makes the text bold for me. Maybe just try cleaning the project. Because we don't need to build the project to find if command worked. For me, when I enter that command in my xml file, it makes the text bold in preview instantaneously.

hyperCoder
  • 271
  • 2
  • 13