X
X
xSatirx2013-12-06 18:11:51
Android
xSatirx, 2013-12-06 18:11:51

How can you implement a floating top bar in Android?

At the top of the screen is a LynearLayout that is full screen wide and 50dp high. Below, the remaining space is occupied by a ListView and a button. It is necessary that at the click of a button, this LynearLayout smoothly crawls up beyond the screen border, moreover, freeing up space. The ListView (the child element) and all the following elements also smoothly took this place. By pressing the button again, the LynearLayout also smoothly moved into place, moving the underlying ListView and other elements down. Please tell me how to implement it, what components are needed? An example of a working code will help a lot, or at least tell me where to dig. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
Zeldan, 2013-12-07
@xSatirx

Example here https://github.com/krishnalalstha/ExpandableLayout
Basic question on SO with a similar problem: stackoverflow.com/questions/5165682/how-to-impleme...

A
Alexey Rudkovsky, 2013-12-06
@AlexRudkowskij

It 's simple

X
xSatirx, 2013-12-06
@xSatirx

I suspect that something similar
would suit me - the behavior in the screenshot is very similar, but unfortunately I do not have access to this article. Maybe someone knows how to achieve such an effect?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question