ViewGroupCompat.java 4.29 KB
package android.support.v4.view;

import android.os.Build.VERSION;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;

public final class ViewGroupCompat
{
  public static final int LAYOUT_MODE_CLIP_BOUNDS = 0;
  public static final int LAYOUT_MODE_OPTICAL_BOUNDS = 1;
  static final c a = new f();
  
  static
  {
    int i = Build.VERSION.SDK_INT;
    if (i >= 21)
    {
      a = new e();
      return;
    }
    if (i >= 18)
    {
      a = new d();
      return;
    }
    if (i >= 14)
    {
      a = new b();
      return;
    }
    if (i >= 11)
    {
      a = new a();
      return;
    }
  }
  
  public static int getLayoutMode(ViewGroup paramViewGroup)
  {
    return a.a(paramViewGroup);
  }
  
  public static int getNestedScrollAxes(ViewGroup paramViewGroup)
  {
    return a.c(paramViewGroup);
  }
  
  public static boolean isTransitionGroup(ViewGroup paramViewGroup)
  {
    return a.b(paramViewGroup);
  }
  
  public static boolean onRequestSendAccessibilityEvent(ViewGroup paramViewGroup, View paramView, AccessibilityEvent paramAccessibilityEvent)
  {
    return a.a(paramViewGroup, paramView, paramAccessibilityEvent);
  }
  
  public static void setLayoutMode(ViewGroup paramViewGroup, int paramInt)
  {
    a.a(paramViewGroup, paramInt);
  }
  
  public static void setMotionEventSplittingEnabled(ViewGroup paramViewGroup, boolean paramBoolean)
  {
    a.a(paramViewGroup, paramBoolean);
  }
  
  public static void setTransitionGroup(ViewGroup paramViewGroup, boolean paramBoolean)
  {
    a.b(paramViewGroup, paramBoolean);
  }
  
  static class a
    extends ViewGroupCompat.f
  {
    public final void a(ViewGroup paramViewGroup, boolean paramBoolean)
    {
      paramViewGroup.setMotionEventSplittingEnabled(paramBoolean);
    }
  }
  
  static class b
    extends ViewGroupCompat.a
  {
    public final boolean a(ViewGroup paramViewGroup, View paramView, AccessibilityEvent paramAccessibilityEvent)
    {
      return paramViewGroup.onRequestSendAccessibilityEvent(paramView, paramAccessibilityEvent);
    }
  }
  
  static abstract interface c
  {
    public abstract int a(ViewGroup paramViewGroup);
    
    public abstract void a(ViewGroup paramViewGroup, int paramInt);
    
    public abstract void a(ViewGroup paramViewGroup, boolean paramBoolean);
    
    public abstract boolean a(ViewGroup paramViewGroup, View paramView, AccessibilityEvent paramAccessibilityEvent);
    
    public abstract void b(ViewGroup paramViewGroup, boolean paramBoolean);
    
    public abstract boolean b(ViewGroup paramViewGroup);
    
    public abstract int c(ViewGroup paramViewGroup);
  }
  
  static class d
    extends ViewGroupCompat.b
  {
    public final int a(ViewGroup paramViewGroup)
    {
      return paramViewGroup.getLayoutMode();
    }
    
    public final void a(ViewGroup paramViewGroup, int paramInt)
    {
      paramViewGroup.setLayoutMode(paramInt);
    }
  }
  
  static final class e
    extends ViewGroupCompat.d
  {
    public final void b(ViewGroup paramViewGroup, boolean paramBoolean)
    {
      paramViewGroup.setTransitionGroup(paramBoolean);
    }
    
    public final boolean b(ViewGroup paramViewGroup)
    {
      return paramViewGroup.isTransitionGroup();
    }
    
    public final int c(ViewGroup paramViewGroup)
    {
      return paramViewGroup.getNestedScrollAxes();
    }
  }
  
  static class f
    implements ViewGroupCompat.c
  {
    public int a(ViewGroup paramViewGroup)
    {
      return 0;
    }
    
    public void a(ViewGroup paramViewGroup, int paramInt) {}
    
    public void a(ViewGroup paramViewGroup, boolean paramBoolean) {}
    
    public boolean a(ViewGroup paramViewGroup, View paramView, AccessibilityEvent paramAccessibilityEvent)
    {
      return true;
    }
    
    public void b(ViewGroup paramViewGroup, boolean paramBoolean) {}
    
    public boolean b(ViewGroup paramViewGroup)
    {
      return false;
    }
    
    public int c(ViewGroup paramViewGroup)
    {
      if ((paramViewGroup instanceof NestedScrollingParent)) {
        return ((NestedScrollingParent)paramViewGroup).getNestedScrollAxes();
      }
      return 0;
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/ViewGroupCompat.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */