Ahmed Elshaer
Ahmed Elshaer

Reputation: 384

Android Bottom bar like Google Space app

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?

Upvotes: 2

Views: 4279

Answers (4)

Razvan Cristian Lung
Razvan Cristian Lung

Reputation: 6071

This library lets you use it like a tab layout SpaceTabLibrary.

enter link description here

Upvotes: 2

Ahmed Elshaer
Ahmed Elshaer

Reputation: 384

after asking friend i found this library that implements exactly what i want

Here is a Demo

Upvotes: 4

milosmns
milosmns

Reputation: 3793

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

Upvotes: 0

compte14031879
compte14031879

Reputation: 1591

Some elements to implement your solution :

enter image description here

enter image description here

Upvotes: -2

Related Questions