File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
lib/java/com/google/android/material Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 2929
3030/** @hide For internal use only. */
3131@ RestrictTo (LIBRARY_GROUP )
32- final class BottomNavigationItemView extends NavigationBarItemView {
32+ public class BottomNavigationItemView extends NavigationBarItemView {
3333 public BottomNavigationItemView (@ NonNull Context context ) {
3434 super (context );
3535 }
Original file line number Diff line number Diff line change 1818
1919import com .google .android .material .R ;
2020
21+ import static androidx .annotation .RestrictTo .Scope .LIBRARY_GROUP ;
22+
2123import android .content .Context ;
2224import android .os .Build .VERSION ;
2325import androidx .appcompat .widget .TintTypedArray ;
2729import android .widget .FrameLayout ;
2830import androidx .annotation .NonNull ;
2931import androidx .annotation .Nullable ;
32+ import androidx .annotation .RestrictTo ;
3033import androidx .coordinatorlayout .widget .CoordinatorLayout ;
3134import androidx .core .content .ContextCompat ;
3235import com .google .android .material .behavior .HideBottomViewOnScrollBehavior ;
@@ -149,6 +152,8 @@ public int getMaxItemCount() {
149152 return MAX_ITEM_COUNT ;
150153 }
151154
155+ /** @hide */
156+ @ RestrictTo (LIBRARY_GROUP )
152157 @ Override
153158 @ NonNull
154159 protected NavigationBarMenuView createNavigationBarMenuView (@ NonNull Context context ) {
Original file line number Diff line number Diff line change @@ -708,7 +708,12 @@ protected interface OnItemReselectedListener {
708708 /** Returns the maximum number of items that can be shown in NavigationBarView. */
709709 public abstract int getMaxItemCount ();
710710
711- /** Returns reference to a newly created {@link NavigationBarMenuView} */
711+ /**
712+ * Returns reference to a newly created {@link NavigationBarMenuView}
713+ *
714+ * @hide
715+ */
716+ @ RestrictTo (LIBRARY_GROUP )
712717 @ NonNull
713718 protected abstract NavigationBarMenuView createNavigationBarMenuView (@ NonNull Context context );
714719
Original file line number Diff line number Diff line change 1919import com .google .android .material .R ;
2020
2121import static android .view .ViewGroup .LayoutParams .WRAP_CONTENT ;
22+ import static androidx .annotation .RestrictTo .Scope .LIBRARY_GROUP ;
2223import static java .lang .Math .min ;
2324
2425import android .content .Context ;
3233import androidx .annotation .LayoutRes ;
3334import androidx .annotation .NonNull ;
3435import androidx .annotation .Nullable ;
36+ import androidx .annotation .RestrictTo ;
3537import com .google .android .material .internal .ThemeEnforcement ;
3638import com .google .android .material .navigation .NavigationBarView ;
3739
@@ -235,6 +237,8 @@ private NavigationRailMenuView getNavigationRailMenuView() {
235237 return (NavigationRailMenuView ) getMenuView ();
236238 }
237239
240+ /** @hide */
241+ @ RestrictTo (LIBRARY_GROUP )
238242 @ Override
239243 @ NonNull
240244 protected NavigationRailMenuView createNavigationBarMenuView (@ NonNull Context context ) {
You can’t perform that action at this time.
0 commit comments