I want to use a BottomBar in my Android app but I'd like to style it like the one in Google Space app. How can I accomplish that effect?
Asked
Active
Viewed 4,108 times
2
-
see this: http://stackoverflow.com/questions/36019986/which-view-should-be-used-for-new-material-design-bottom-navigation/42119958#42119958 – Fartab Feb 08 '17 at 17:50
4 Answers
4
after asking friend i found this library that implements exactly what i want

Ahmed Elshaer
- 364
- 7
- 21
-
does not work how to solve the null pointer exception `java.lang.NullPointerException: Your space item count must be greater than 1 , your current items count isa : 0` – Pemba Tamang Aug 16 '19 at 07:49
2
This library lets you use it like a tab layout SpaceTabLibrary.

Razvan Cristian Lung
- 5,661
- 5
- 25
- 49
0
The simplest (smoke and mirrors) solution would be to make a nine patch with a bump in the middle for that layout's background - e.g. use Roman's tool - https://romannurik.github.io/AndroidAssetStudio/nine-patches.html
If you need the bottom bar to be animated, then you'll definitely have to create your own. Perhaps do a custom layout and when drawing the background, draw a bump in the middle? Extravaganza would surely be animating a vector drawable: https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable.html

milosmns
- 3,595
- 4
- 36
- 48
-2
Some elements to implement your solution :
- Material Design > Components > Bottom Navigation
- Tutorials : http://androidgifts.com/tag/bottom-navigation/
- Custom implementation : https://github.com/roughike/BottomBar
- Another custom implementation : https://github.com/aurelhubert/ahbottomnavigation

compte14031879
- 1,531
- 14
- 27
-
This isn't exactly what im asking for,i want it with the pump in the middle with the create button – Ahmed Elshaer Oct 27 '16 at 19:15
-
@AhmedElshaer You need to custom your implementation with bottom bar i think. Nothing exists already fully realized – compte14031879 Oct 27 '16 at 19:19
-
@AhmedElshaer Nice search, i had never seen before. Glad to know him – compte14031879 Oct 28 '16 at 10:06