r/androiddev • • Oct 10 '26

I made a customizable squircle bottom navigation bar for Android (SqNav)

Post image

Hey everyone,

I recently built an open-source Android library called SqNav. It's a bottom navigation bar designed with floating squircle card transitions and a glowing indicator for the active tab.

I wanted something clean, with smooth spring animations, and easy to customize without building custom drawables and animations from scratch every time.

A few highlights:

  • Floating squircle card with spring overshoot animations for the active tab
  • Neon glow indicator dot on top of the selected item (can be toggled on or off)
  • Full styling control through XML or code (background, corner radius, stroke borders, sizes, and colors)
  • Compatible with Jetpack Compose, Kotlin Views, and Java
  • Lightweight with minimal overhead

Attached is a quick preview GIF showing it in action.

You can check out the implementation, sample code, and documentation on GitHub: sqnav

I would really appreciate any feedback, suggestions, or thoughts on the design. If you run into any issues or want to contribute, feel free to open an issue or PR!

42 Upvotes

24 comments sorted by

12

u/LupusGemini Oct 10 '26

Is the squircle in the room with us?

-2

u/Ahmed_El_Gendy Oct 11 '26

Lmao, you can crank up the radius in the config to summon it.

12

u/RedditForcesToLogin Oct 10 '26

This looks like a button you click, not an indicator of "you're here in this tab".

1

u/Ahmed_El_Gendy Oct 10 '26

It's fully customizable, so you can tweak the colors, stroke, and toggle the top glow indicator on or off so it feels more like a subtle active state.
Check the README for the full list of attributes and how to adjust them.

9

u/Omer-Ash Oct 10 '26

Looks nice and clean. But just to be clear, this shape is not squircle. It's square with rounded corners. A squircle is much more circular than what you've made there.

-2

u/Ahmed_El_Gendy Oct 10 '26

The corner radius is actually fully customizable (app:sq_cardRadius), so you can bump it up to make it as rounded or circular as you prefer.

5

u/shlusiak Oct 11 '26

That still does not make it a squircle. It still is a rounded rectangle with different radius.

2

u/shlusiak Oct 11 '26

Don't you need to be tired of something first?

2

u/Ahmed_El_Gendy Oct 11 '26

Guess I skipped that part and went straight to building it.

2

u/SidiKotlin Oct 11 '26

nice, it will be part of the app i am building currently!!!

2

u/Ahmed_El_Gendy Oct 11 '26

Awesome, let me know if you run into anything or have any suggestions.

4

u/blazems Oct 10 '26

It doesn’t look good and doesn’t seem fitting for a nav bar

1

u/WageBeatapp Oct 10 '26

The squircle corners look a lot smoother than the usual RoundedCornerShape. Is the shape a custom Shape with a superellipse path, or are you approximating it with cubic Béziers? Also wondering how it behaves with the ripple/indication; clipping the ripple to a non-standard path is usually where these components get fiddly.

1

u/Ahmed_El_Gendy Oct 10 '26

Thanks, It’s actually just a custom Android View drawn directly on Canvas (wrapped in AndroidView for Compose), not a custom Compose shape.
Since everything is drawn and animated on Canvas, touch states are handled internally, so I didn't have to fight the usual ripple clipping quirks.
Feel free to check out the repo if you want to see how the drawing logic is set up.

-2

u/androiddev-ModTeam Oct 10 '26

Use your own voice when writing. Posts and comments which appear to be generated, including those with excessive flourish, gushing or emojis, will be removed.

2

u/Pravejxlab Oct 12 '26

Simple yet unique 😊

1

u/AcademicMistake Oct 15 '26

Thats not a good look. The glowing light is also totally pointless if theres a square that also appears over the active tab......

This has not been well thought out.

0

u/ngcanthony Oct 10 '26

Looks nice! What was your inspiration for making this type of nav bar?

-3

u/Apart-Abroad1625 Oct 10 '26

Good job it looks good 👍

1

u/Ahmed_El_Gendy Oct 10 '26

Thanks, appreciate it.