Fixed UI in dark theme.

This commit is contained in:
Alex Ning 2019-08-22 17:38:12 +08:00
parent 23c76a86cb
commit 7b754328fc
2 changed files with 5 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class MessageRecyclerViewAdapter extends PagedListAdapter<Message, RecyclerView.
public void onViewRecycled(@NonNull RecyclerView.ViewHolder holder) {
super.onViewRecycled(holder);
if(holder instanceof DataViewHolder) {
((DataViewHolder) holder).itemView.setBackgroundColor(mResources.getColor(android.R.color.white));
((DataViewHolder) holder).itemView.setBackgroundColor(mResources.getColor(R.color.backgroundColor));
((DataViewHolder) holder).titleTextView.setVisibility(View.VISIBLE);
((DataViewHolder) holder).authorTextView.setTextColor(mResources.getColor(R.color.primaryTextColor));
}

View File

@ -45,4 +45,8 @@
<color name="navBarColor">@color/backgroundColor</color>
<color name="cardViewBackgroundColor">#242424</color>
<color name="singleCommentThreadBackgroundColor">#123E77</color>
<color name="unreadMessageBackgroundColor">#123E77</color>
</resources>