bottomnavigationview

How to add Floating action Button in Bottom Navigation Bar in Center with border?

浪尽此生 提交于 2020-02-20 04:48:31
问题 I am trying to add a Floating Action Button in the middle of the Bottom Navigation bar. Problem is border is not appearing and also margin in Floating Action Button and icons not according to my requirement. Here is a picture of the issue. Achieved Image Here is a picture what I want Required Image Code bottomNavigationBar: SafeArea(child: _buildBottomBar(context)), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButton: CircularGradientButton( tooltip:

Bottom Navigation Bar pushes down when changing between fragments

巧了我就是萌 提交于 2020-01-25 10:14:14
问题 In my activity i have a bottom navigation bar and the frame layout to show the fragments everything works fine but the problem is when i start moving from 1 - 4 in sequence the bottom navigation bar stays in its position but when i jump suddenly from 4 to 2 then the bottom navigation bar goes out of screen and when again clicked on the same item then it comes to normal position. This video will clearly help you get what my problem is Click to watch. as i guess this is a major problem when

Error inflating class android.support.design.internal.BottomNavigationView

吃可爱长大的小学妹 提交于 2020-01-24 21:42:34
问题 i'm making my first app. it is a simple application with a splash screen and the main activity and now with flavours i have two build variants: Free Version: With Admob banner on bottom of the activity Paid Version: The app don't show admob banner on the bottom but replace it with a Bottom Navigation View for switch activity ( i will add another activity for this). I tell you that before i add this Bottom Navigation View all part of application work properly, include Build variants. This is

BottomNavigationView with navgraph loading fragment again

白昼怎懂夜的黑 提交于 2020-01-24 21:20:55
问题 I am using BottomNavigationView with nav-graph Below is my code In MainActivity.class navController = Navigation.findNavController(this, R.id.mainFragment); bottomNavigation.setOnNavigationItemSelectedListener(menuItem -> { switch (menuItem.getItemId()){ case R.id.home: navController.navigate(R.id.exploreFragment); return true; case R.id.events: navController.navigate(R.id.eventsFragment); return true; case R.id.stories: navController.navigate(R.id.storiesFragment); return true; } return

How to programmatically select BottomNavigationBar Tab in Flutter instead of built in onTap callback?

♀尐吖头ヾ 提交于 2020-01-24 03:51:23
问题 I have been working with BottomNavigationBar in the flutter but I am not able to select a Tab programmatically outside of onTap callback of BottomNavigationBar. Following code with onTap callback [Which is working] return new BottomNavigationBar( items: <BottomNavigationBarItem>[ _bottomNavigationItem(Icons.account_circle, DrawerTitles.CONTACTS), _bottomNavigationItem(Icons.delete, DrawerTitles.DELETED_CONTACTS), _bottomNavigationItem(Icons.list, DrawerTitles.LOGS), ], onTap: (int index) {

When scroll bottom navigation bar does not hide - BottomNavigationBehavior

扶醉桌前 提交于 2020-01-22 03:10:11
问题 i want to hide bottom navigation bar so i am using bottom navigation behavior it works when i had other code but in this it seems not working i tried but bottom navigation bar won't hide Here is the code package com.blipclap.creativegraphy.Helper; import android.content.Context; import android.support.annotation.NonNull; import android.support.design.widget.CoordinatorLayout; import android.support.design.widget.Snackbar; import android.support.v4.view.ViewCompat; import android.util

BottomNavigation View design issue while run in tablet

走远了吗. 提交于 2020-01-16 12:00:13
问题 I am facing BottomNavigationView issue in tablet Here is my XML code <com.google.android.material.bottomnavigation.BottomNavigationView android:id="@+id/bnvHome" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/colorBackground" app:layout_constraintBottom_toBottomOf="parent" app:menu="@menu/bottom_nav_menu" /> Menu XML- <item android:id="@+id/navAppointment" android:icon="@drawable/ic_appointment_tab" android:title="@string/bn_title

Bottom Navigation View With Navigation Control transaction failing some times

耗尽温柔 提交于 2020-01-16 09:03:12
问题 while moving from one tab to another tab on bottom navigation view some times i am getting the app theme color is applying to enter fragment like this is my code ``code from activity``` override fun onSupportNavigateUp() = NavigationUI.navigateUp(navController!!, null) private fun setUpNavigation() { navController = Navigation.findNavController(this, R.id.frameRoot) bottomNavigationView.setupWithNavController(navController) bottomNavigationView.setOnNavigationItemSelectedListener { item ->

BottomNavigationView jumps up leaving blank space when fullscreen

拈花ヽ惹草 提交于 2020-01-15 03:10:48
问题 For a BottomNavigationView's last tab, I want the content to be below status bar and make the status bar completely transparent. This works as expected but the BottomNavigationView jumps up leaving a blank space in the bottom when the last tab is selected. There were similar topics in SO that said to set fitWindowSystems to false. I tried it, but not helping. Any help is appreciated. ExplorerFragment.java public class ExplorerFragment extends Fragment { public ExplorerFragment() { } @Override

BottomNavigationView set custom icon downloaded from some url

走远了吗. 提交于 2020-01-14 03:41:12
问题 I have 4 tabs on the bottom of the screen and for the last tab I want to set a user profile image if he has it. I tried everything. Only the icon set from a drawable works fine. Every other case is a disaster. I found out that if I remove icon tint and icon mode on android versions above 26 it works fine. For versions under it, it's not working. Here is the code. Maybe somebody will have some ideas about how to help. This is how i set the icon from a drawable. This imageView is just a test to