Disable animation on tabs click android bottom bar navigation - roughike - android

I'm using roughike library for bottom bar navigation in my android project. But facing a problem that is when I click on the tabs it's getting bigger. I tried many ways to disable the animation but unable to do it. I asked on the github support page but no luck. I just took a look at the source code and found there is a fix property which causing the problem and there may no functions to edit this. Someone please help me if there is any way to disable the animation.
Note: I'm using all default settings from the github readme. But I tried changing options etc.
Thanks,
Robin
https://github.com/roughike/BottomBar

To achieve some solution to this problem,I am also trying. I got some luck.May be you can try that
1. Please try to add this is in gradle file.
compile 'com.roughike:bottom-bar:1.4.0.1'
in your java code add the following:
bottomBar.useFixedMode();

Related

Custom bottom navigation bar layout

I want to create the following customized BottomNavigationBar. How can I set custom layout for the same?
Can somebody tell me how to approach it ?
You can check this library, hope this helps! BottomNavigationCircles-Android
If you are OK with using Material components, this article should be of use: https://protocoderspoint.com/custom-bottom-navigation-bar-android/.
This is a relatively easy thing to find on Google, so I advise looking there for some help.
Check out sites like https://github.com/roughike/BottomBar if you want to build upon a pre-built layout/system.
As far as I can tell though, there is no method to set android:layout="#layout/mylayout" function for bottom nav bars.
Search GitHub for "custom bottom navigation bar" and try to build off of the dirty work that has been done there. It will save a lot of time and headache while you're trying to build the back-end navigation patterns and layout inflators.

NO FRAGMENTS found in the NAVIGATION EDITOR

Navigation Editor
Though there are fragments present in the layout directory, none of it shows up in the navigation editor, except main activity.
p.s: I've also tried Invalidate Caches and Restart but didn't work.
Somebody please help me with this. Thanks in advance :)
I found a similar issue here: Fragments are not displaying in Android Navigation component .
Without seeing any code like your dependencies or your fragments it is hard to deduce. If you are not already using the Androidx libraries you could try migrating to those and seeing if that helps.

How to implement vertical sliding actionbar(like in the grofers app)

I want to implement a layout in which the action bar is below an image. And, on sliding the screen up, the actionbar should also move up, along with the image. The action bar should then go to the topmost point of the screen and stop.
This is implemented in many apps like the grofers app.
I don't mind using an external library for the same.
Thanks.
Go Through this awesome Demo Sample Code using Android Design Support Library Coordinator Layout.
Please go through this,It shows some of the important features in the new Design library:
https://github.com/chrisbanes/cheesesquare
As per your requirement Here is sample code link.
Please check this
I have found a library same for your requirement. please find the link
You have to customize from that library according to your need.

other alternatives to sliding tabs

seems that starting Lollipop the ActionBar "setNavigationMode" method is deprecated. i know that google now offers to use sliding tabs and view pager however I am unable to understand the code completely. is there any alternative that I can use? if there isnt then can someone suggest for a good tutorial on that?
I need to achieve two tabs when each one holds a fragment.
I plan on using the SlidingTabsLayout technique instead of the new ActionBarCompat or Toolbar. It seems you don’t like it when reading from your original post. However there is sample working code at SlidingTabsBasic.
If you download the zip file, you may have to import the project instead of opening it. When you import, find the build.gradle file of the project. So far it seems this is not much difference than the link you posted at Github https://gist.github.com/eluleci/199be9a0d1af42653b5b.
I predict when the new Toolbar is stable, I can integrate some of this code like the ViewPager and PageAdapter.
I am thinking of the same thing since I want to support the new Lollipop. There is a Stackoverflow link at Action bar navigation modes are deprecated in Android L
Let me know what you found or decided. Perhaps we can work together. Have fun!

Accordion / ExpandableListView on Android

I'm trying to create an accordion in Android that has the following features:
Slide animation when opening a tab
Alignment to the top when opening a tab
The ability to be used inside a fragment and not inside an activity
Any idea to how to accomplish all these points? I've seen a lot of libraries that however luck of one or more of this points (and I cannot fix the remaining myself :( ).
Any idea? Also pointers to how-to-guides to how to fix the missing points would be really useful! Thanks
If you are interested on how I solved the problem, you can find the code here: https://github.com/filnik/AndroidSmoothAccordion
It is "quick-and-dirty" but it does the job.

Categories

Resources