我希望能夠使粗體TextView。這是我如何設置它的外觀(我需要做此代碼):如何製作一個TextView粗體?
nameText.setTextAppearance(getApplicationContext(), R.style.BlueText);
priceText.setTextAppearance(getApplicationContext(), R.style.BlueText);
changeText.setTextAppearance(getApplicationContext(), R.style.BlueText);
這裏是我的style.xml
<!-- Blue Color -->
<style name="BlueText">
<item name="android:textColor">#4871A8</item>
</style>
如何確保我的TextView被加粗?