Well, I just stumbled upon the same problem, and I found that some devices have some βspecialβ very light scenes by default, coughing the female. I will answer this slightly old question.
The fact is that you are most likely using the wrong context to inflate your layout. I think you are using application-context for this. The Context application does not apply the theme that you defined.
This (inflating using a context application) is legal, but inflation will be performed with the default theme for the system you are running on, and not what is defined in your application. *
For example, if you do:
LayoutInflater.from(context).inflate(R.layout.menu_rental_list_item, parent, false);
context here should be an Activity- or Fragment context - NOT a context application.
Please double check this.
*) Ah, you want to know more about contexts? Read on here .
Langusten gustel
source share