@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), R.style.PagerTheme_PageIndicatorDefaults);
// clone the inflater using the ContextThemeWrapper
LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper);
View v = localInflater.inflate(R.layout.fragment_doctor, container, false);
v.setOnTouchListener(mOnTouchListener);
initViews(v);
return v;
}
Fragment添加Theme
最新推荐文章于 2020-03-15 16:17:56 发布