Fix strange background of symbol minor categories
On some devices such as Samsung Galaxy S4, we would see a strange
background unless we explicitly set the background drawable.
BUG=
TEST=
REF_BUG=27130533
REF_CL=114715186
REF_TIME=2016-02-16T11:16:27+09:00
REF_TIME_RAW=1455588987 +0900
Hiroshi Sumita
8 years ago
818 | 818 | getTabHost().setBackgroundDrawable( |
819 | 819 | skin.windowBackgroundDrawable.getConstantState().newDrawable()); |
820 | 820 | TabWidget tabWidget = getTabWidget(); |
821 | // Explicitly set non-transparent drawable to avoid strange background on | |
822 | // some devices. | |
823 | tabWidget.setBackgroundDrawable( | |
824 | skin.buttonFrameBackgroundDrawable.getConstantState().newDrawable()); | |
821 | 825 | for (int i = 0; i < tabWidget.getTabCount(); ++i) { |
822 | 826 | View view = tabWidget.getChildTabViewAt(i); |
823 | 827 | view.setBackgroundDrawable(createTabBackgroundDrawable(skin)); |