F
F
Fotonick2016-10-07 10:53:25
Android
Fotonick, 2016-10-07 10:53:25

Is it possible to make such a bottom panel?

4911a1ea82cb411db1076179cccab06b.png
For the bottom bar, I use the com.roughike:bottom-bar:2.0.2 library.
As far as I understand, it is impossible to make a bar button so that it crawls out of the bar, like this central button in the picture. In addition, the library makes all inactive buttons the same color, that is, it is impossible to make the central button remain pink if another button is active (the active button is white). Is it possible to do as on the layout or do I need to require a change in design?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Neron, 2016-10-07
Lordov @Nekto_Habr

What prevents you from making the panel as high as the topmost edge of the pink plus sign, and making the top of this panel transparent so that it seems that the circle protrudes beyond the panel?

I
Inredika WhiteBlack, 2016-10-10
@Inredika

If a library is used for building, then, as for me, it is better to adjust the solution for it. Think, is the game worth the candle? Due to the color, the button stands out enough, I don’t see a strong need to spend effort on such a useless feature

Y
Yuri, 2016-10-19
@YuryBorodkin

well, the android has its own bottom bar https://material.google.com/components/bottom-navi...
And the button is done like this: RelativeLayout or FrameLayout is used as the root. And the button is just an element that is placed "on top" (the last one in the layout xml). Put him in a position where and how you like.
However, it is impossible to make a solid widget with such a button - conceptually, any View is a rectangle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question