bottomnavigationview

BottomNavigationView goes up when keyboard appears

好久不见. 提交于 2020-01-12 05:53:31
问题 Image My BottomNavigationView works fine but it goes up when I press on the EditText to write on it. There is an image on the link above. This is my manifest in which I included android:windowSoftInputMode="adjustPan" but it doesn't work for me. Any other suggestions? <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android

Android BottomNavigationView react to SlidingUpPanelLayout mouvements

只谈情不闲聊 提交于 2020-01-06 12:20:39
问题 I've been trying to animate some BottomNavigationView depdending on com.sothree.slidinguppanel.SlidingUpPanelLayout mouvements. here is my layout : <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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" android:layout_width="match_parent" android:layout_height="match_parent"> <com.sothree.slidinguppanel.SlidingUpPanelLayout android:id="@

How can I create this custom Bottom Navigation on Android

微笑、不失礼 提交于 2020-01-05 03:04:56
问题 I am trying to create this custom Bottom Navigation. The design is really good but I do not know how to code such a Navigation. As you can see, the middle item is the profile pic of the user and the navigation buttons have that custom yellow rounded rectangular as a current page indicator. Any idea how to implement this? Thank you! 回答1: It is done by using library for material design. There are some sites that provides the this type of views you can modified it in some restricted mode. The

How can I create this custom Bottom Navigation on Android

为君一笑 提交于 2020-01-05 03:04:35
问题 I am trying to create this custom Bottom Navigation. The design is really good but I do not know how to code such a Navigation. As you can see, the middle item is the profile pic of the user and the navigation buttons have that custom yellow rounded rectangular as a current page indicator. Any idea how to implement this? Thank you! 回答1: It is done by using library for material design. There are some sites that provides the this type of views you can modified it in some restricted mode. The

Bottom Navigation loading Fragments is SLOW

非 Y 不嫁゛ 提交于 2020-01-02 03:17:09
问题 I'm using a BottomNavigationView in my project and when I press an item and load e.g. My Ticket fragment, which generates a QR-code and takes a while, there is a huge delay until the item is selected. I tried to put an AsyncTask to load all data in onResume() and onActivityCreated() in the Fragment but it didn't work well. How can I use Bottom Navigation View and Fragments smoothly? BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_navigation_view);

Android Jetpack Navigation, BottomNavigationView with Youtube or Instagram like proper back navigation (fragment back stack)?

走远了吗. 提交于 2019-12-29 10:07:20
问题 Android Jetpack Navigation, BottomNavigationView with auto fragment back stack on back button click? What I wanted, after choosing multiple tabs one after another by user and user click on back button app must redirect to the last page he/she opened. I achieved the same using Android ViewPager, by saving the currently selected item in an ArrayList. Is there any auto back stack after Android Jetpack Navigation Release? I want to achieve it using navigation graph activity_main.xml <?xml version

Separate Back Stack for each tab in BottomNavigationView Android using Fragments

谁都会走 提交于 2019-12-29 03:30:49
问题 I'm implementing BottomNavigationView for navigation in an Android app. I am using Fragments to set the content for each tab. I know how to set up one fragment for each tab and then switch fragments when a tab is clicked. But how can I have a separate back stack for each tab? Here is the code to set up one fragment: Fragment selectedFragment = ItemsFragment.newInstance(); FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.replace(R.id.content,

Android BottomNavigationView tint icon color

爷,独闯天下 提交于 2019-12-25 09:00:26
问题 I'm using BottomNavigationView and I've set colors like this: <android.support.design.widget.BottomNavigationView android:id="@+id/bottom_navigation" android:layout_width="match_parent" android:layout_height="@dimen/bottom_navigation_height" app:itemBackground="@color/white" app:itemIconTint="@color/bottom_bar_item_selector" app:itemTextColor="@color/bottom_bar_item_selector" app:menu="@menu/bottom_navigation_main" /> @color/bottom_bar_item_selector: <?xml version="1.0" encoding="utf-8"?>

How to show BottomNavigationBar again on navigate back

狂风中的少年 提交于 2019-12-25 01:43:49
问题 I'm using a BottomNavigationBar with HideBottomViewOnScrollBehavior to hide it when user scrolls down and display it when user scrolls up. This works great. But how can i show the BottomNavigationBar again when it's hidden because user scrolled down and navigates back over back button? At the moment my BottomNavigationView stays hidden. I'm using support library 28.0.0 回答1: Maybe somebody has a better solution for this, but for now i came up with the following. In my MainActivity of my

Reusable views?

假装没事ソ 提交于 2019-12-25 01:08:53
问题 I'm new to Android development, but I have quite some bit of Swing/WPF(C#) GUI experience. What I'm trying to do is the following: I have a BottomNavigationView with 3 separate views. Each view is implemented as a fragment that is shown/ hidden in the MainActivity java code through a OnNavigationItemSelectedListener : private BottomNavigationView.OnNavigationItemSelectedListener mOnNavigationItemSelectedListener = new BottomNavigationView.OnNavigationItemSelectedListener() { @Override public