I have a .xml in a layout folder of an decompiled android .apk. There’s a TextView element which has an ID (android:id="@+id/x") In the ID is text. But I want to display the first two letters of the ID in font type bold and the text, which is left in normal font type. So, does anybody know, what I can do, to solve this without touching the ID. An answer would be so nice. 🙂
I have a .xml in a layout folder of an decompiled android .apk. There’s
Share
Use SpannableString to achieve this:
and it should give you “ab” boldfaced and rest of text unchanged.