I am also having this issue and would like some help. My activity uses a light theme, but for one if its fragments I need to use a dark theme. I've tried the following with no success:
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Context darkTheme = new ContextThemeWrapper(getActivity(), R.style.Theme_Dark); inflater = (LayoutInflater) darkTheme.getSystemService(Context.LAYOUT_INFLATER_SERVICE); return inflater.inflate(R.layout.dark_fragment, container, false); } I've also tried inflater = LayoutInflater.from(darkTheme); also with no success. Can someone please comment on how to make this work? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en