Browse Source

E-Ink: Override dictionary entry background color

master
Macoy Madson 7 months ago
parent
commit
dd896f212c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/java/org/zorgblub/rikai/glosslist/DictionaryEntryAdapter.java

+ 2
- 1
src/main/java/org/zorgblub/rikai/glosslist/DictionaryEntryAdapter.java View File

@ -22,6 +22,7 @@ Date: 2013 07 31
package org.zorgblub.rikai.glosslist;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.util.TypedValue;
import android.view.View;
@ -56,7 +57,7 @@ public class DictionaryEntryAdapter<T extends DroidEntry> extends ArrayAdapter<T
T item = getItem(position);
textView.setText(item.render(), TextView.BufferType.SPANNABLE);
textView.setBackgroundColor(item.getBackgroundColor());
textView.setBackgroundColor(Color.WHITE);
if(typeface != null)
textView.setTypeface(typeface);


Loading…
Cancel
Save