1 package android.support.v4.app; 2 3 import android.support.annotation.IdRes; 4 import android.support.annotation.Nullable; 5 import android.view.View; 6 7 8 /** 9 * Callbacks to a {@link Fragment}'s container. 10 */ 11 public abstract class FragmentContainer { 12 /** 13 * Return the view with the given resource ID. May return {@code null} if the 14 * view is not a child of this container. 15 */ 16 @Nullable onFindViewById(@dRes int id)17 public abstract View onFindViewById(@IdRes int id); 18 19 /** 20 * Return {@code true} if the container holds any view. 21 */ onHasView()22 public abstract boolean onHasView(); 23 } 24