leanback: hide embedded video, parallax, CompositeDrawable
Hide the new classes/methods before finalizing APIs.
Change-Id: I3b6660a60457821f9e5e7aa40b5e98f16fb0baff
diff --git a/api/current.txt b/api/current.txt
index 211967e..ec138d4 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -1536,34 +1536,13 @@
method public abstract android.support.v17.leanback.app.BrowseSupportFragment.MainFragmentRowsAdapter getMainFragmentRowsAdapter();
}
- public final class DetailsBackgroundParallaxHelper {
- method public android.graphics.drawable.Drawable getCoverImageDrawable();
- method public android.graphics.drawable.Drawable getDrawable();
- method public void setColor(int);
- method public void setCoverImageBitmap(android.graphics.Bitmap);
- }
-
- public static class DetailsBackgroundParallaxHelper.ParallaxBuilder {
- ctor public DetailsBackgroundParallaxHelper.ParallaxBuilder(android.content.Context, android.support.v17.leanback.app.DetailsParallaxManager);
- method public android.support.v17.leanback.app.DetailsBackgroundParallaxHelper build();
- method public android.support.v17.leanback.app.DetailsBackgroundParallaxHelper.ParallaxBuilder setColor(int);
- method public android.support.v17.leanback.app.DetailsBackgroundParallaxHelper.ParallaxBuilder setCoverImageMinVerticalOffset(int);
- }
-
public class DetailsFragment extends android.support.v17.leanback.app.BrandedFragment {
ctor public DetailsFragment();
method protected java.lang.Object createEntranceTransition();
- method public final android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost createPlaybackGlueHost();
- method public final android.app.Fragment findOrCreateVideoFragment();
method public android.support.v17.leanback.widget.ObjectAdapter getAdapter();
- method public android.view.View getBackgroundView();
method public android.support.v17.leanback.widget.BaseOnItemViewClickedListener getOnItemViewClickedListener();
- method public android.support.v17.leanback.app.DetailsParallaxManager getParallaxManager();
method public android.support.v17.leanback.app.RowsFragment getRowsFragment();
method protected deprecated android.view.View inflateTitle(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle);
- method public android.support.v17.leanback.app.DetailsParallaxManager onCreateParallaxManager();
- method public android.app.Fragment onCreateVideoFragment();
- method public android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost onCreateVideoFragmentHost(android.app.Fragment);
method protected void onEntranceTransitionEnd();
method protected void onEntranceTransitionPrepare();
method protected void onEntranceTransitionStart();
@@ -1579,34 +1558,13 @@
method protected void setupPresenter(android.support.v17.leanback.widget.Presenter);
}
- public class DetailsFragmentVideoHelper {
- ctor public DetailsFragmentVideoHelper(android.support.v17.leanback.app.PlaybackGlue, android.support.v17.leanback.app.DetailsParallaxManager);
- method public void setBackgroundDrawable(android.graphics.drawable.Drawable);
- }
-
- public class DetailsParallaxManager {
- ctor public DetailsParallaxManager();
- method public android.support.v17.leanback.widget.ParallaxRecyclerViewSource.ChildPositionProperty getFrameBottom();
- method public android.support.v17.leanback.widget.ParallaxRecyclerViewSource.ChildPositionProperty getFrameTop();
- method public android.support.v17.leanback.widget.Parallax getParallax();
- method public android.support.v7.widget.RecyclerView getRecyclerView();
- method public void setRecyclerView(android.support.v7.widget.RecyclerView);
- }
-
public class DetailsSupportFragment extends android.support.v17.leanback.app.BrandedSupportFragment {
ctor public DetailsSupportFragment();
method protected java.lang.Object createEntranceTransition();
- method public final android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost createPlaybackGlueHost();
- method public final android.support.v4.app.Fragment findOrCreateVideoSupportFragment();
method public android.support.v17.leanback.widget.ObjectAdapter getAdapter();
- method public android.view.View getBackgroundView();
method public android.support.v17.leanback.widget.BaseOnItemViewClickedListener getOnItemViewClickedListener();
- method public android.support.v17.leanback.app.DetailsParallaxManager getParallaxManager();
method public android.support.v17.leanback.app.RowsSupportFragment getRowsSupportFragment();
method protected deprecated android.view.View inflateTitle(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle);
- method public android.support.v17.leanback.app.DetailsParallaxManager onCreateParallaxManager();
- method public android.support.v4.app.Fragment onCreateVideoSupportFragment();
- method public android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost onCreateVideoSupportFragmentHost(android.support.v4.app.Fragment);
method protected void onEntranceTransitionEnd();
method protected void onEntranceTransitionPrepare();
method protected void onEntranceTransitionStart();
@@ -2261,28 +2219,6 @@
method public void setSelectedPosition(int);
}
- public class VideoFragment extends android.support.v17.leanback.app.PlaybackFragment {
- ctor public VideoFragment();
- method public android.view.SurfaceView getSurfaceView();
- method public void setSurfaceHolderCallback(android.view.SurfaceHolder.Callback);
- }
-
- public class VideoFragmentGlueHost extends android.support.v17.leanback.app.PlaybackFragmentGlueHost implements android.support.v17.leanback.app.SurfaceHolderGlueHost {
- ctor public VideoFragmentGlueHost(android.support.v17.leanback.app.VideoFragment);
- method public void setSurfaceHolderCallback(android.view.SurfaceHolder.Callback);
- }
-
- public class VideoSupportFragment extends android.support.v17.leanback.app.PlaybackSupportFragment {
- ctor public VideoSupportFragment();
- method public android.view.SurfaceView getSurfaceView();
- method public void setSurfaceHolderCallback(android.view.SurfaceHolder.Callback);
- }
-
- public class VideoSupportFragmentGlueHost extends android.support.v17.leanback.app.PlaybackSupportFragmentGlueHost implements android.support.v17.leanback.app.SurfaceHolderGlueHost {
- ctor public VideoSupportFragmentGlueHost(android.support.v17.leanback.app.VideoSupportFragment);
- method public void setSurfaceHolderCallback(android.view.SurfaceHolder.Callback);
- }
-
}
package android.support.v17.leanback.database {
@@ -2344,52 +2280,6 @@
method public void setActiveLevel(float);
}
- public class CompositeDrawable extends android.graphics.drawable.Drawable implements android.graphics.drawable.Drawable.Callback {
- ctor public CompositeDrawable();
- method public void addChildDrawable(android.graphics.drawable.Drawable);
- method public void draw(android.graphics.Canvas);
- method public android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable getChildAt(int);
- method public int getChildCount();
- method public android.graphics.drawable.Drawable getDrawable(int);
- method public int getOpacity();
- method public void invalidateDrawable(android.graphics.drawable.Drawable);
- method public void removeChild(int);
- method public void removeDrawable(android.graphics.drawable.Drawable);
- method public void scheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable, long);
- method public void setAlpha(int);
- method public void setColorFilter(android.graphics.ColorFilter);
- method public void unscheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable);
- }
-
- public static final class CompositeDrawable.ChildDrawable {
- ctor public CompositeDrawable.ChildDrawable(android.graphics.drawable.Drawable, android.support.v17.leanback.graphics.CompositeDrawable);
- method public android.support.v17.leanback.graphics.BoundsRule getBoundsRule();
- method public android.graphics.drawable.Drawable getDrawable();
- method public void recomputeBounds();
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Integer> BOTTOM_ABSOLUTE;
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Float> BOTTOM_FRACTION;
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Integer> LEFT_ABSOLUTE;
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Float> LEFT_FRACTION;
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Integer> RIGHT_ABSOLUTE;
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Float> RIGHT_FRACTION;
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Integer> TOP_ABSOLUTE;
- field public static final android.util.Property<android.support.v17.leanback.graphics.CompositeDrawable.ChildDrawable, java.lang.Float> TOP_FRACTION;
- }
-
- public class FitWidthBitmapDrawable extends android.graphics.drawable.Drawable {
- ctor public FitWidthBitmapDrawable();
- method public void draw(android.graphics.Canvas);
- method public android.graphics.Bitmap getBitmap();
- method public int getOpacity();
- method public android.graphics.Rect getSource();
- method public int getVerticalOffset();
- method public void setAlpha(int);
- method public void setBitmap(android.graphics.Bitmap);
- method public void setColorFilter(android.graphics.ColorFilter);
- method public void setSource(android.graphics.Rect);
- method public void setVerticalOffset(int);
- }
-
}
package android.support.v17.leanback.system {
@@ -3289,147 +3179,6 @@
method public final boolean isRenderedAsRowView();
}
- public final class Parallax {
- ctor public Parallax();
- method public void addEffect(android.support.v17.leanback.widget.ParallaxEffect);
- method public android.support.v17.leanback.widget.ParallaxEffect addEffect(android.support.v17.leanback.widget.ParallaxSource.IntPropertyKeyValue...);
- method public android.support.v17.leanback.widget.ParallaxEffect addEffect(android.support.v17.leanback.widget.ParallaxSource.FloatPropertyKeyValue...);
- method public java.util.List<android.support.v17.leanback.widget.ParallaxEffect> getEffects();
- method public android.support.v17.leanback.widget.ParallaxSource getSource();
- method public void removeAllEffects();
- method public void removeEffect(android.support.v17.leanback.widget.ParallaxEffect);
- method public void setSource(android.support.v17.leanback.widget.ParallaxSource);
- }
-
- public abstract class ParallaxEffect<ParallaxEffectT extends android.support.v17.leanback.widget.ParallaxEffect, PropertyKeyValueT extends android.support.v17.leanback.widget.ParallaxSource.PropertyKeyValue> {
- ctor public ParallaxEffect();
- method public final void addTarget(android.support.v17.leanback.widget.ParallaxTarget);
- method protected abstract float calculateFraction(android.support.v17.leanback.widget.ParallaxSource);
- method public final java.util.List<PropertyKeyValueT> getPropertyRanges();
- method public final java.util.List<android.support.v17.leanback.widget.ParallaxTarget> getTargets();
- method public final void performMapping(android.support.v17.leanback.widget.ParallaxSource);
- method public final void removeTarget(android.support.v17.leanback.widget.ParallaxTarget);
- method public final void setPropertyRanges(PropertyKeyValueT...);
- method public final android.support.v17.leanback.widget.ParallaxEffect target(android.support.v17.leanback.widget.ParallaxTarget);
- method public final android.support.v17.leanback.widget.ParallaxEffect target(java.lang.Object, android.animation.PropertyValuesHolder);
- }
-
- public static final class ParallaxEffect.FloatEffect extends android.support.v17.leanback.widget.ParallaxEffect {
- ctor public ParallaxEffect.FloatEffect();
- method protected float calculateFraction(android.support.v17.leanback.widget.ParallaxSource);
- }
-
- public static final class ParallaxEffect.IntEffect extends android.support.v17.leanback.widget.ParallaxEffect {
- ctor public ParallaxEffect.IntEffect();
- method protected float calculateFraction(android.support.v17.leanback.widget.ParallaxSource);
- }
-
- public class ParallaxRecyclerViewSource extends android.support.v17.leanback.widget.ParallaxSource.IntSource {
- ctor public ParallaxRecyclerViewSource();
- method public android.support.v17.leanback.widget.ParallaxRecyclerViewSource.ChildPositionProperty createProperty(java.lang.String, int);
- method public int getMaxParentVisibleSize();
- method public android.support.v7.widget.RecyclerView getRecyclerView();
- method public void setListener(android.support.v17.leanback.widget.ParallaxSource.Listener);
- method public void setRecyclerView(android.support.v7.widget.RecyclerView);
- }
-
- public static final class ParallaxRecyclerViewSource.ChildPositionProperty extends android.support.v17.leanback.widget.ParallaxSource.IntProperty {
- method public android.support.v17.leanback.widget.ParallaxRecyclerViewSource.ChildPositionProperty adapterPosition(int);
- method public android.support.v17.leanback.widget.ParallaxRecyclerViewSource.ChildPositionProperty fraction(float);
- method public int getAdapterPosition();
- method public float getFraction();
- method public int getOffset();
- method public int getViewId();
- method public android.support.v17.leanback.widget.ParallaxRecyclerViewSource.ChildPositionProperty offset(int);
- method public android.support.v17.leanback.widget.ParallaxRecyclerViewSource.ChildPositionProperty viewId(int);
- }
-
- public abstract class ParallaxSource<PropertyT extends android.util.Property> {
- ctor public ParallaxSource();
- method public abstract PropertyT addProperty(java.lang.String);
- method public abstract PropertyT createProperty(java.lang.String, int);
- method public final java.util.List<PropertyT> getProperties();
- method public abstract void setListener(android.support.v17.leanback.widget.ParallaxSource.Listener);
- method public void updateValues();
- method public abstract void verifyProperties() throws java.lang.IllegalStateException;
- }
-
- public static class ParallaxSource.FloatProperty extends android.util.Property {
- ctor public ParallaxSource.FloatProperty(java.lang.String, int);
- method public final android.support.v17.leanback.widget.ParallaxSource.FloatPropertyKeyValue at(float, float);
- method public final android.support.v17.leanback.widget.ParallaxSource.FloatPropertyKeyValue atAbsolute(float);
- method public final android.support.v17.leanback.widget.ParallaxSource.FloatPropertyKeyValue atFraction(float);
- method public final java.lang.Float get(android.support.v17.leanback.widget.ParallaxSource.FloatSource);
- method public final int getIndex();
- method public final void set(android.support.v17.leanback.widget.ParallaxSource.FloatSource, java.lang.Float);
- field public static final float UNKNOWN_AFTER = 3.4028235E38f;
- field public static final float UNKNOWN_BEFORE = -3.4028235E38f;
- }
-
- public static class ParallaxSource.FloatPropertyKeyValue extends android.support.v17.leanback.widget.ParallaxSource.PropertyKeyValue {
- ctor public ParallaxSource.FloatPropertyKeyValue(android.support.v17.leanback.widget.ParallaxSource.FloatProperty, float);
- ctor public ParallaxSource.FloatPropertyKeyValue(android.support.v17.leanback.widget.ParallaxSource.FloatProperty, float, float);
- method public final float getKeyValue(android.support.v17.leanback.widget.ParallaxSource.FloatSource);
- }
-
- public static abstract class ParallaxSource.FloatSource<FloatPropertyT extends android.support.v17.leanback.widget.ParallaxSource.FloatProperty> extends android.support.v17.leanback.widget.ParallaxSource {
- ctor public ParallaxSource.FloatSource();
- method public final FloatPropertyT addProperty(java.lang.String);
- method public abstract float getMaxParentVisibleSize();
- method public final float getPropertyValue(int);
- method public final void setPropertyValue(int, float);
- method public final void verifyProperties() throws java.lang.IllegalStateException;
- }
-
- public static class ParallaxSource.IntProperty extends android.util.Property {
- ctor public ParallaxSource.IntProperty(java.lang.String, int);
- method public final android.support.v17.leanback.widget.ParallaxSource.IntPropertyKeyValue at(int, float);
- method public final android.support.v17.leanback.widget.ParallaxSource.IntPropertyKeyValue atAbsolute(int);
- method public final android.support.v17.leanback.widget.ParallaxSource.IntPropertyKeyValue atFraction(float);
- method public final java.lang.Integer get(android.support.v17.leanback.widget.ParallaxSource.IntSource);
- method public final int getIndex();
- method public final void set(android.support.v17.leanback.widget.ParallaxSource.IntSource, java.lang.Integer);
- field public static final int UNKNOWN_AFTER = 2147483647; // 0x7fffffff
- field public static final int UNKNOWN_BEFORE = -2147483648; // 0x80000000
- }
-
- public static class ParallaxSource.IntPropertyKeyValue extends android.support.v17.leanback.widget.ParallaxSource.PropertyKeyValue {
- ctor public ParallaxSource.IntPropertyKeyValue(android.support.v17.leanback.widget.ParallaxSource.IntProperty, int);
- ctor public ParallaxSource.IntPropertyKeyValue(android.support.v17.leanback.widget.ParallaxSource.IntProperty, int, float);
- method public final int getKeyValue(android.support.v17.leanback.widget.ParallaxSource.IntSource);
- }
-
- public static abstract class ParallaxSource.IntSource<IntPropertyT extends android.support.v17.leanback.widget.ParallaxSource.IntProperty> extends android.support.v17.leanback.widget.ParallaxSource {
- ctor public ParallaxSource.IntSource();
- method public final IntPropertyT addProperty(java.lang.String);
- method public abstract int getMaxParentVisibleSize();
- method public final int getPropertyValue(int);
- method public final void setPropertyValue(int, int);
- method public final void verifyProperties() throws java.lang.IllegalStateException;
- }
-
- public static abstract class ParallaxSource.Listener {
- ctor public ParallaxSource.Listener();
- method public void onPropertiesChanged(android.support.v17.leanback.widget.ParallaxSource);
- }
-
- public static class ParallaxSource.PropertyKeyValue<PropertyT extends android.util.Property> {
- ctor public ParallaxSource.PropertyKeyValue(PropertyT);
- method public PropertyT getProperty();
- }
-
- public abstract class ParallaxTarget {
- ctor public ParallaxTarget();
- method public abstract float getFraction();
- method public abstract void update(float);
- }
-
- public static final class ParallaxTarget.PropertyValuesHolderTarget extends android.support.v17.leanback.widget.ParallaxTarget {
- ctor public ParallaxTarget.PropertyValuesHolderTarget(java.lang.Object, android.animation.PropertyValuesHolder);
- method public float getFraction();
- method public void update(float);
- }
-
public class PlaybackControlsRow extends android.support.v17.leanback.widget.Row {
ctor public PlaybackControlsRow(java.lang.Object);
ctor public PlaybackControlsRow();
diff --git a/v17/leanback/src/android/support/v17/leanback/app/DetailsBackgroundParallaxHelper.java b/v17/leanback/src/android/support/v17/leanback/app/DetailsBackgroundParallaxHelper.java
index 47d46a8..f63b3f3 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/DetailsBackgroundParallaxHelper.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/DetailsBackgroundParallaxHelper.java
@@ -80,6 +80,7 @@
* </ul>
*
* In case the color is not set, it will use defaultBrandColorDark from LeanbackTheme.
+ * @hide
*/
public final class DetailsBackgroundParallaxHelper {
private DetailsParallaxManager mDetailsParallaxManager;
diff --git a/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java b/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java
index 4964cb1..d4d8390 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java
@@ -329,6 +329,7 @@
* and provide their own instance of a {@link Fragment}. When you provide your own instance of
* video fragment, you MUST also provide a custom
* {@link android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost}.
+ * @hide
*/
public Fragment onCreateVideoFragment() {
return new VideoFragment();
@@ -338,6 +339,7 @@
* Creates an instance of
* {@link android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost}. The implementation
* of this host depends on the instance of video fragment {@link #onCreateVideoFragment()}.
+ * @hide
*/
public PlaybackGlue.PlaybackGlueHost onCreateVideoFragmentHost(Fragment fragment) {
return new VideoFragmentGlueHost((VideoFragment) fragment);
@@ -348,6 +350,7 @@
* fragment is being restored, it will return the video fragment in there.
*
* @return Fragment the added or restored fragment responsible for rendering video.
+ * @hide
*/
public final Fragment findOrCreateVideoFragment() {
Fragment fragment = getFragmentManager().findFragmentById(R.id.video_surface_container);
@@ -365,6 +368,7 @@
* This method initializes a video fragment, create an instance of
* {@link android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost} using that fragment
* and return it.
+ * @hide
*/
public final PlaybackGlue.PlaybackGlueHost createPlaybackGlueHost() {
Fragment fragment = findOrCreateVideoFragment();
@@ -494,6 +498,7 @@
*
* @return The new created DetailsParallaxManager.
* @see #getParallaxManager()
+ * @hide
*/
public DetailsParallaxManager onCreateParallaxManager() {
return new DetailsParallaxManager();
@@ -505,6 +510,7 @@
*
* @return The DetailsParallaxManager instance attached to the DetailsFragment.
* @see #onCreateParallaxManager()
+ * @hide
*/
public DetailsParallaxManager getParallaxManager() {
if (mDetailsParallaxManager == null) {
@@ -521,6 +527,7 @@
* view to hide the VideoFragment before it is ready to play.
*
* @see #findOrCreateVideoFragment()
+ * @hide
*/
public View getBackgroundView() {
return mRootView == null ? null : mRootView.findViewById(R.id.details_background_view);
diff --git a/v17/leanback/src/android/support/v17/leanback/app/DetailsFragmentVideoHelper.java b/v17/leanback/src/android/support/v17/leanback/app/DetailsFragmentVideoHelper.java
index 26723ad..7d58b13 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/DetailsFragmentVideoHelper.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/DetailsFragmentVideoHelper.java
@@ -29,6 +29,7 @@
* class is also responsible for implementing
* {@link android.support.v17.leanback.widget.BrowseFrameLayout.OnFocusSearchListener} and
* {@link android.support.v7.widget.RecyclerView.OnScrollListener} in {@link DetailsFragment}.
+ * @hide
*/
public class DetailsFragmentVideoHelper {
private static final long BACKGROUND_CROSS_FADE_DURATION = 500;
diff --git a/v17/leanback/src/android/support/v17/leanback/app/DetailsParallaxManager.java b/v17/leanback/src/android/support/v17/leanback/app/DetailsParallaxManager.java
index fd65420..12dd108 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/DetailsParallaxManager.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/DetailsParallaxManager.java
@@ -24,6 +24,7 @@
* Class in charge of managing the {@link Parallax} object for {@link DetailsFragment}. This
* can be shared for creating both parallax effect and video animations when transitioning to/from
* half/full screen.
+ * @hide
*/
public class DetailsParallaxManager {
final ParallaxRecyclerViewSource mParallaxSource;
diff --git a/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java b/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java
index 4dcebbd..cbf6324 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java
@@ -332,6 +332,7 @@
* and provide their own instance of a {@link Fragment}. When you provide your own instance of
* video fragment, you MUST also provide a custom
* {@link android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost}.
+ * @hide
*/
public Fragment onCreateVideoSupportFragment() {
return new VideoSupportFragment();
@@ -341,6 +342,7 @@
* Creates an instance of
* {@link android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost}. The implementation
* of this host depends on the instance of video fragment {@link #onCreateVideoSupportFragment()}.
+ * @hide
*/
public PlaybackGlue.PlaybackGlueHost onCreateVideoSupportFragmentHost(Fragment fragment) {
return new VideoSupportFragmentGlueHost((VideoSupportFragment) fragment);
@@ -351,6 +353,7 @@
* fragment is being restored, it will return the video fragment in there.
*
* @return Fragment the added or restored fragment responsible for rendering video.
+ * @hide
*/
public final Fragment findOrCreateVideoSupportFragment() {
Fragment fragment = getFragmentManager().findFragmentById(R.id.video_surface_container);
@@ -368,6 +371,7 @@
* This method initializes a video fragment, create an instance of
* {@link android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost} using that fragment
* and return it.
+ * @hide
*/
public final PlaybackGlue.PlaybackGlueHost createPlaybackGlueHost() {
Fragment fragment = findOrCreateVideoSupportFragment();
@@ -497,6 +501,7 @@
*
* @return The new created DetailsParallaxManager.
* @see #getParallaxManager()
+ * @hide
*/
public DetailsParallaxManager onCreateParallaxManager() {
return new DetailsParallaxManager();
@@ -508,6 +513,7 @@
*
* @return The DetailsParallaxManager instance attached to the DetailsSupportFragment.
* @see #onCreateParallaxManager()
+ * @hide
*/
public DetailsParallaxManager getParallaxManager() {
if (mDetailsParallaxManager == null) {
@@ -524,6 +530,7 @@
* view to hide the VideoSupportFragment before it is ready to play.
*
* @see #findOrCreateVideoSupportFragment()
+ * @hide
*/
public View getBackgroundView() {
return mRootView == null ? null : mRootView.findViewById(R.id.details_background_view);
diff --git a/v17/leanback/src/android/support/v17/leanback/app/VideoFragment.java b/v17/leanback/src/android/support/v17/leanback/app/VideoFragment.java
index 15024c8..fa9989e 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/VideoFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/VideoFragment.java
@@ -24,6 +24,7 @@
/**
* Subclass of {@link PlaybackFragment} that is responsible for providing a {@link SurfaceView}
* and rendering video.
+ * @hide
*/
public class VideoFragment extends PlaybackFragment {
static final int SURFACE_NOT_CREATED = 0;
diff --git a/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java b/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
index 5a0f604..0db2a38 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
@@ -18,6 +18,7 @@
/**
* {@link PlaybackGlue.PlaybackGlueHost} implementation
* the interaction between this class and {@link VideoFragment}.
+ * @hide
*/
public class VideoFragmentGlueHost extends PlaybackFragmentGlueHost
implements SurfaceHolderGlueHost {
diff --git a/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.java b/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.java
index 932ce36..0f76e6e 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.java
@@ -27,6 +27,7 @@
/**
* Subclass of {@link PlaybackSupportFragment} that is responsible for providing a {@link SurfaceView}
* and rendering video.
+ * @hide
*/
public class VideoSupportFragment extends PlaybackSupportFragment {
static final int SURFACE_NOT_CREATED = 0;
diff --git a/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragmentGlueHost.java b/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragmentGlueHost.java
index 6e6b5a0..eb9d9d4 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragmentGlueHost.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragmentGlueHost.java
@@ -21,6 +21,7 @@
/**
* {@link PlaybackGlue.PlaybackGlueHost} implementation
* the interaction between this class and {@link VideoSupportFragment}.
+ * @hide
*/
public class VideoSupportFragmentGlueHost extends PlaybackSupportFragmentGlueHost
implements SurfaceHolderGlueHost {
diff --git a/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java b/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
index b6da479..8077115 100644
--- a/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
+++ b/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
@@ -32,6 +32,7 @@
/**
* Generic drawable class that can be composed of multiple children. Whenever the bounds changes
* for this class, it updates those of it's children.
+ * @hide
*/
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
public class CompositeDrawable extends Drawable implements Drawable.Callback {
diff --git a/v17/leanback/src/android/support/v17/leanback/graphics/FitWidthBitmapDrawable.java b/v17/leanback/src/android/support/v17/leanback/graphics/FitWidthBitmapDrawable.java
index 7320701..4641178 100644
--- a/v17/leanback/src/android/support/v17/leanback/graphics/FitWidthBitmapDrawable.java
+++ b/v17/leanback/src/android/support/v17/leanback/graphics/FitWidthBitmapDrawable.java
@@ -29,6 +29,7 @@
* will be scaled to fit the full width of the region and will be aligned to the top left corner.
* Any region outside the bounds will be clipped during {@link #draw(Canvas)} call. Top
* position of the bitmap can be controlled by {@link #setVerticalOffset(int)} call.
+ * @hide
*/
public class FitWidthBitmapDrawable extends Drawable {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/Parallax.java b/v17/leanback/src/android/support/v17/leanback/widget/Parallax.java
index 58cfe63..c17d4b0 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/Parallax.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/Parallax.java
@@ -24,6 +24,7 @@
/**
* Parallax listens to {@link ParallaxSource} changes and invokes performMapping on each
* {@link ParallaxEffect} object.
+ * @hide
*/
public final class Parallax {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxEffect.java b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxEffect.java
index 615c11e..28731fd 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxEffect.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxEffect.java
@@ -35,6 +35,7 @@
* to {@link ParallaxTarget#update(float)}.
* <p>
* ParallaxEffect has two concrete subclasses, {@link IntEffect} and {@link FloatEffect}.
+ * @hide
*/
public abstract class ParallaxEffect<ParallaxEffectT extends ParallaxEffect,
PropertyKeyValueT extends ParallaxSource.PropertyKeyValue> {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxRecyclerViewSource.java b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxRecyclerViewSource.java
index acfb656..6178421 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxRecyclerViewSource.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxRecyclerViewSource.java
@@ -25,6 +25,7 @@
* Implementation of {@link ParallaxSource} class for {@link RecyclerView}. This class
* allows users to track position of specific views inside {@link RecyclerView} relative to
* itself. @see {@link ChildPositionProperty} for details.
+ * @hide
*/
public class ParallaxRecyclerViewSource extends
ParallaxSource.IntSource<ParallaxRecyclerViewSource.ChildPositionProperty> {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxSource.java b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxSource.java
index 91459c9..c8ba362 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxSource.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxSource.java
@@ -37,6 +37,7 @@
*
* These rules can be verified by {@link #verifyProperties()}.
* </p>
+ * @hide
*/
public abstract class ParallaxSource<PropertyT extends Property> {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxTarget.java b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxTarget.java
index 1fbd54e..fbed174 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/ParallaxTarget.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/ParallaxTarget.java
@@ -24,6 +24,7 @@
* {@link ParallaxEffect} transforms the values of {@link ParallaxSource}, which represents the
* current state of UI, into a float value between 0 and 1. That float value is passed into
* {@link #update(float)} method.
+ * @hide
*/
public abstract class ParallaxTarget {