首页 > 代码库 > Fragment 设置主题

Fragment 设置主题

	@Override	public View onCreateView(LayoutInflater inflater, ViewGroup container,			Bundle savedInstanceState) {		 final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), R.style.StyledIndicators);  		    LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper);  		return localInflater.inflate(R.layout.frg_favorable, null);	}


 

Fragment 设置主题