parallaxpager/src/main/java/com/prolificinteractive/parallaxpager/ParallaxLayoutInflater.java
@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 {
    // 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 { // 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 ) ; }
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.
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 .