<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@android:color/transparent" />
- <item android:drawable="@color/theme_default_other_lang_bg" />
+ <item android:drawable="@color/theme_default_normal_row_bg" />
</selector>
\ No newline at end of file
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@android:color/transparent" />
- <item android:drawable="@color/theme_light_other_lang_bg" />
+ <item android:drawable="@color/theme_light_normal_row_bg" />
</selector>
\ No newline at end of file
<color name="theme_default_token_row_fg">#FFFFFF</color>
<color name="theme_default_token_row_main_bg">#222222</color>
<color name="theme_default_token_row_other_bg">#222222</color>
- <color name="theme_default_other_lang_bg">#000000</color>
+ <color name="theme_default_normal_row_bg">#000000</color>
<!-- ****************************************************************** -->
<color name="theme_light_token_row_fg">#000000</color>
<color name="theme_light_token_row_main_bg">#EEEEEE</color>
<color name="theme_light_token_row_other_bg">#EEEEEE</color>
- <color name="theme_light_other_lang_bg">#FFFFFF</color>
+ <color name="theme_light_normal_row_bg">#FFFFFF</color>
<color name="gray">#777777</color>
R.color.theme_default_token_row_fg,
R.drawable.theme_default_token_row_main_bg,
R.drawable.theme_default_token_row_other_bg,
- R.drawable.theme_default_other_lang_bg),
+ R.drawable.theme_default_normal_row_bg),
LIGHT(R.style.Theme_Light,
R.style.Theme_Light_TokenRow_Fg,
R.color.theme_light_token_row_fg,
R.drawable.theme_light_token_row_main_bg,
R.drawable.theme_light_token_row_other_bg,
- R.drawable.theme_light_other_lang_bg);
+ R.drawable.theme_light_normal_row_bg);
private Theme(final int themeId, final int tokenRowFg,
final int tokenRowFgColor,
final int tokenRowMainBg, final int tokenRowOtherBg,
- final int otherLangBg) {
+ final int normalRowBg) {
this.themeId = themeId;
this.tokenRowFg = tokenRowFg;
this.tokenRowFgColor = tokenRowFgColor;
this.tokenRowMainBg = tokenRowMainBg;
this.tokenRowOtherBg = tokenRowOtherBg;
- this.otherLangBg = otherLangBg;
+ this.normalRowBg = normalRowBg;
}
final int themeId;
final int tokenRowFgColor;
final int tokenRowMainBg;
final int tokenRowOtherBg;
- final int otherLangBg;
+ final int normalRowBg;
}
}
updateLangButton();
searchView.requestFocus();
+
+ // http://stackoverflow.com/questions/2833057/background-listview-becomes-black-when-scrolling
+ getListView().setCacheColorHint(0);
}
private void onCreateSetupActionBarAndSearchView() {
result.setClickable(true);
result.setFocusable(true);
result.setLongClickable(true);
- result.setBackgroundResource(android.R.drawable.menuitem_background);
+// result.setBackgroundResource(android.R.drawable.menuitem_background);
+
+ result.setBackgroundResource(theme.normalRowBg);
+
result.setOnClickListener(new TextView.OnClickListener() {
@Override
public void onClick(View v) {