I’m trying to use the android.R.drawable stat_sys_download as the background image for a text view but it’s not showing up:
textview.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.stat_sys_download));
If I use a different android.R.drawable like ic_menu_save it works fine:
textview.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.ic_menu_save));
I can however use stat_sys_download as an icon on a menu option so I know it exists:
menu.add(0, OPTION_MENU_SORTBY, 0, Str.TEXT_SORTBY).setIcon(android.R.drawable.stat_sys_download);
So why is it that I can use stat_sys_download as an icon but not as a background? Should I copy it into my resources folder and use it that way?
From Google’s UI Guidelines for Status Bar Icons (also can be applied towards other drawable elements)