Android - TextView wrap_content not working when number text

169 Views Asked by At

My device has not set a custom font, so the font of the app is supposed to follow the device setting font.

When applying custom font, the width of the textview was found to be cut, so I left it as wrap_content, but it didn't work properly. (Default font set wrap_contetnt works well)

The code is as below, and the number is cut like this. Help anyone! Help me!

<TextView
                        android:id="@+id/textViewId"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        tools:ignore="SpUsage" />[enter image description here][1]
0

There are 0 best solutions below