- 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
最新推荐文章于 2021-01-17 01:45:55 发布