@Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { if (Character.isUpperCase(name.charAt(0))) return createView(name, "carbon.widget.", attrs); return super.onCreateView(name, attrs); }
@Override protected View onCreateView(View parent, String name, AttributeSet attrs) throws ClassNotFoundException { if (Character.isUpperCase(name.charAt(0))) return createView(name, "carbon.widget.", attrs); return super.onCreateView(parent, name, attrs); } }
/** * The LayoutInflater onCreateView is the fourth port of call for LayoutInflation. * BUT only for none CustomViews. */ @Override @TargetApi(Build.VERSION_CODES.HONEYCOMB) protected View onCreateView(View parent, String name, AttributeSet attrs) throws ClassNotFoundException { return mCalligraphyFactory.onViewCreated(super.onCreateView(parent, name, attrs), getContext(), attrs); }
@Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { View view = null; for (String prefix : sClassPrefixList) { try { view = createView(name, prefix, attrs); } catch (ClassNotFoundException ignored) { } } // In this case we want to let the base class take a crack // at it. if (view == null) { view = super.onCreateView(name, attrs); } return mIconicsFactory.onViewCreated(view, view.getContext(), attrs); }
@Override protected View onCreateView(View parent, String name, AttributeSet attrs) throws ClassNotFoundException { return mIconicsFactory.onViewCreated( super.onCreateView(parent, name, attrs), getContext(), attrs); }
/** * The LayoutInflater onCreateView is the fourth port of call for LayoutInflation. * BUT only for none CustomViews. * Basically if this method doesn't inflate the View nothing probably will. */ @Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { // This mimics the {@code PhoneLayoutInflater} in the way it tries to inflate the base // classes, if this fails its pretty certain the app will fail at this point. View view = null; for (String prefix : sClassPrefixList) { try { view = createView(name, prefix, attrs); } catch (ClassNotFoundException ignored) { } } // In this case we want to let the base class take a crack // at it. if (view == null) view = super.onCreateView(name, attrs); return mCalligraphyFactory.onViewCreated(view, view.getContext(), attrs); }
@Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { for (String prefix : CLASS_PREFIX_LIST) { try { View view = createView(name, prefix, attrs); if (view != null) { return view; } } catch (ClassNotFoundException e) { // In this case we want to let the base class take a crack at it. if (DEBUG) { e.printStackTrace(); } } } return super.onCreateView(name, attrs); }
/** Override onCreateView to instantiate names that correspond to the widgets known to the Widget factory. If we don't find a match, call through to our super class. */ @Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { for (String prefix : sClassPrefixList) { try { View view = createView(name, prefix, attrs); if (view != null) { return view; } } catch (ClassNotFoundException e) { // In this case we want to let the base class take a crack // at it. } } return super.onCreateView(name, attrs); }
/** Override onCreateView to instantiate names that correspond to the widgets known to the Widget factory. If we don't find a match, call through to our super class. */ @Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { for (String prefix : sClassPrefixList) { try { View view = createView(name, prefix, attrs); if (view != null) { return view; } } catch (ClassNotFoundException e) { // In this case we want to let the base class take a crack // at it. } } return super.onCreateView(name, attrs); }
/** * The LayoutInflater onCreateView is the fourth port of call for LayoutInflation. * BUT only for none CustomViews. */ @Override @TargetApi(Build.VERSION_CODES.HONEYCOMB) protected View onCreateView(View parent, String name, AttributeSet attrs) throws ClassNotFoundException { return mParallaxFactory.onViewCreated(super.onCreateView(parent, name, attrs), getContext(), attrs); }
@Override @TargetApi(Build.VERSION_CODES.HONEYCOMB) protected View onCreateView(View parent, String name, AttributeSet attrs) throws ClassNotFoundException { return onViewCreated(super.onCreateView(parent, name, attrs), getContext(), attrs); }
@Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { return onViewCreated(super.onCreateView(name, attrs), getContext(), attrs); }
/** * The LayoutInflater onCreateView is the fourth port of call for LayoutInflation. * BUT only for none CustomViews. * Basically if this method doesn't inflate the View nothing probably will. */ @Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { // This mimics the {@code PhoneLayoutInflater} in the way it tries to inflate the base // classes, if this fails its pretty certain the app will fail at this point. View view = null; for (String prefix : sClassPrefixList) { try { view = createView(name, prefix, attrs); } catch (ClassNotFoundException ignored) { } } // In this case we want to let the base class take a crack // at it. if (view == null) { view = super.onCreateView(name, attrs); } return mParallaxFactory.onViewCreated(view, view.getContext(), attrs); }
@Override protected View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { for (String prefix : sClassPrefixList) { try { View view = createView(name, prefix, attrs); if (view != null) { return applyChange(view, attrs); } } catch (ClassNotFoundException e) { // In this case we want to let the base class take a crack // at it. } } return super.onCreateView(name, attrs); }