I have a messaging widget that displays a list of the user's messages, and unread messages should appear as bold.
My code:
RemoteViews messageRow = new RemoteViews(mContext.getPackageName(), R.layout.row_message);
messageRow.setTextViewText(R.id.row_user_name, mMessages.get(position).getSender());
messageRow.setTextViewText(R.id.row_time, mMessages.get(position).getDate());
if (!mMessages.get(position).isIsRead()){
// Bold the textviews if the message is unread
}
I'm looking for something akin to textView.setTypeface(textView.getTypeface(), BOLD);
that works on widget textviews. This syntax doesn't seem to exist for RemoteViews.
Thanks!