textAppearance代码的设置

推荐安卓开发神器(里面有各种UI特效和android代码库实例)

nameText.setTextAppearance(getApplicationContext(), R.style.BlueText);

<!-- Blue Color -->
   <style name="BlueText">
        <item name="android:textColor">#4871A8</item>
        <item name="android:textStyle">bold</item>
    </style>
 
//这里面呢可以设置一些简单style

 

你可能感兴趣的:(java)