android-bottom-nav-view

BottomNavigationView: How to remove hypheanted labels

天大地大妈咪最大 提交于 2020-01-03 17:01:23
问题 Implementing a 5-item BottomNavigationView -with the labels always shown- I'm using the following approach: <android.support.design.widget.BottomNavigationView android:id="@+id/navigation" android:layout_width="0dp" android:layout_height="wrap_content" android:background="?android:attr/windowBackground" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:menu="@menu/navigation" app:labelVisibilityMode=

Android Studio Menu Item click not working

馋奶兔 提交于 2019-12-20 03:40:33
问题 So my menu items wont do anything except show the enlarging animation when clicked on. Im trying to open a new activity with them, I have toast attached to one to see if does anything at all and I'm getting nothing. Is this a common issue? minSdkVersion 17 targetSdkVersion 27 Layout <android.support.design.widget.BottomNavigationView android:id="@+id/navigation" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="0dp" android:layout_marginStart="0dp"

Android Bottom Navigation View item text color?

风流意气都作罢 提交于 2019-12-04 01:35:01
问题 I Started working on Android Bottom Navigation View. But i am facing one issue. If i added 5 items to bottom navigation view, only selected items showing item text. If i added 3 items it is working fine. Any one please tell me how to show the item text for all the 5 items. Thank you in advance. menu.xml: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com

Inner fragment with fitsSystemWindows

巧了我就是萌 提交于 2019-12-02 19:31:06
问题 I am working on the transparent status bar and bottom navigation bar visible. I have achieved the same with my last question: Gradient status bar with BottomNavigationView But now, I have a fragments in which fitsSystemWindows is not working. I have layout like Activity -> Viewpager -> Fragments -> Viewpager -> child Fragments. I have gone through many attempts from stack overflow but still no luck : Appbar fitsSystemWindows - Inside a ViewPager Android - ViewPager fitsSystemWindows

Inner fragment with fitsSystemWindows

妖精的绣舞 提交于 2019-12-02 10:19:55
I am working on the transparent status bar and bottom navigation bar visible. I have achieved the same with my last question: Gradient status bar with BottomNavigationView But now, I have a fragments in which fitsSystemWindows is not working. I have layout like Activity -> Viewpager -> Fragments -> Viewpager -> child Fragments. I have gone through many attempts from stack overflow but still no luck : Appbar fitsSystemWindows - Inside a ViewPager Android - ViewPager fitsSystemWindows (fullscreen) not working Setting a child view to fit system windows Android fitsSystemWindows not working when

Android Studio Menu Item click not working

ⅰ亾dé卋堺 提交于 2019-12-02 01:43:45
So my menu items wont do anything except show the enlarging animation when clicked on. Im trying to open a new activity with them, I have toast attached to one to see if does anything at all and I'm getting nothing. Is this a common issue? minSdkVersion 17 targetSdkVersion 27 Layout <android.support.design.widget.BottomNavigationView android:id="@+id/navigation" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="0dp" android:layout_marginStart="0dp" android:background="?android:attr/windowBackground" app:layout_constraintBottom_toBottomOf="parent" app

Gradient status bar with BottomNavigationView

痴心易碎 提交于 2019-11-29 16:10:41
In my Application I want to show gradient status bar. Also i have used BottomNavigationView . So issue is when i am doing status bar gradient the bottom navigation bar of android overlaps the BottomNavigationView . I have tried below solutions : how to set status bar background as gradient color or a drawable in android Google Now gradient/shadow on status bar & navigation bar How to apply gradient to status bar in android? How to remove button bar at the bottom screen My code is as below : -- > In java code i tried : if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { Window w =

BottomNavigationView Original icon color

人盡茶涼 提交于 2019-11-27 18:03:15
问题 I have my bottomNavigationView : And i added this class to prevent it from doing shiftingMode : public class BottomNavigationViewHelper { public static void disableShiftMode(BottomNavigationView view) { BottomNavigationMenuView menuView = (BottomNavigationMenuView) view.getChildAt(0); try { Field shiftingMode = menuView.getClass().getDeclaredField("mShiftingMode"); shiftingMode.setAccessible(true); shiftingMode.setBoolean(menuView, false); shiftingMode.setAccessible(false); for (int i = 0; i