@Override
protected void onBindViewHolder(@NonNull final Chat.MessagesViewHolder holder, final int position, @NonNull final MessagesHelper model) {
holder.mDisplayText.setBackgroundColor(BackgoundColorSent);
}
我可以为textColor和size做到这一点,但是没有方法textStyle
。我正在使用a firebaseRecyclerAdapter
,希望style
根据用户需要以编程方式更改recyclerView的项目。
您可以setTypeface
用于将样式应用于文本
textView.setTypeface(Typeface.BOLD_ITALIC);
您可以使用的其他字体是:
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句