android-bottomnav

Remove Animation/Shifting mode from BottomNavigationView android [duplicate]

北城以北 提交于 2019-11-27 07:05:31
This question already has an answer here: How to disable BottomNavigationView shift mode? 19 answers i am building an application in which i have a BottomNavigationView. Everything works fine until i get to the Activity. The Navigation is this: The problem is that it has this default animation so it pushes the active element everytime higher than the rest. Another Example: So my question is how to get rid of this default animation and every item is aligned when i switch between them? My code: public class MainActivity extends AppCompatActivity { private BottomNavigationView

Android Bottom Navigation Bar with drop shadow

℡╲_俬逩灬. 提交于 2019-11-27 04:28:06
问题 I'm implementing Bottom Navigation Bar in Android app using Google's support design library v25.1.0. Is there any way to add drop shadow effect, same as current Android native Google Photos app? 回答1: You can draw your own shadow just above the bottom bar using simple View and its background: <View android:layout_width="match_parent" android:layout_height="4dp" android:layout_above="@id/bottom_bar" android:background="@drawable/shadow"/> drawable/shadow.xml: <shape xmlns:android="http:/

How to remove icon animation for bottom navigation view in android

眉间皱痕 提交于 2019-11-26 22:38:46
问题 I have implemented Bottom Navigation View from Design Support Library 25 in my project. I have 5 icons in the view. whenever an icon is selected it's having some animation. But when 3 or fewer icons is not showing any animations. I want to remove that animation and need only some color change for the icon. How can I achieve this? Done enough googling, but couldn't find the solution. Please help. Thanks. 回答1: got answer from this thread. To remove animation or shift mode. Implementation of

Remove Animation/Shifting mode from BottomNavigationView android [duplicate]

心不动则不痛 提交于 2019-11-26 13:02:27
问题 This question already has answers here : How to disable BottomNavigationView shift mode? (19 answers) Closed 2 years ago . i am building an application in which i have a BottomNavigationView. Everything works fine until i get to the Activity. The Navigation is this: The problem is that it has this default animation so it pushes the active element everytime higher than the rest. Another Example: So my question is how to get rid of this default animation and every item is aligned when i switch