@Override
public View onCreateView(LayoutInflaterinflater, ViewGroupcontainer, Bundle savedInstanceState){
Context context= new ContextThemeWrapper(getActivity(), R.style.StyledIndicators);//在这里设置样式
// clone the inflater using the ContextThemeWrapper
LayoutInflater localInflater=inflater.cloneInContext(context);
View view= localInflater.inflate(R.layout.course_fragment,container, false);
return view;
}