Closed manhhoangxuan closed 7 years ago
Hi @manhhoangxuan sorry for the late response. I've been working on other projects for some time.
Remember you can adjust the height of your fragment and pin it to the top of your screen. You can also move the bar to the first layer of your UI so it's drawn in top of any other fragment. This last option depends on your bar implementation.
Is this the answer to your question?
Thanks for your responding Mr @pedrovgs First problem, i have move my bottombar to first layer (as you said) and this problem is ok However, the second problem is "Cannot move Top player down/up when bottombar hide/show" by setTopFragmentMarginBottom still not working. I would like move Top Miniplayer down/up when my bottombar hide/show (i have attacked screen shot for more clear) but i can't ( I have changed setTopFragmentMarginBottom but it's not working)
Thanks
As I can see in your screenshot you have to adjust the fragment or the draggable view/ draggable panel height. You can use animations when needed.
Hi @pedrovgs As you see, i have setTopFragmentMarginBottom(60dp) from start for miniplayer above bottom menu However, when bottom menu is hide, i have used setTopFragmentMarginBottom(0) to move down Miniplayer but it's not working Do you have any solution here? Thanks
@manhhoangxuan did you invalidate the view after calling that method?
Hi @pedrovgs I have called this code to move down miniplayer mContainerDraggable.setTopFragmentMarginBottom(0); mContainerDraggable.invalidate();
And this code to move up miniplayer mContainerDraggable.setTopFragmentMarginBottom(getResources().getDimensionPixelSize(R.dimen.top_fragment_margin_x)); mContainerDraggable.invalidate();
However, It's not working, miniplayer position is nothing changed
Hi @pedrovgs Please help Do you have any solution for this problem?
@manhhoangxuan right now I'm working on a different project. I don't have a quick fix for this. Sorry. If you have time you can always send a PR with the fix. Any contribution is always welcome :)
Dear All, I am facing a problem with Bottombar tab with Top player of DraggablePanel
I cannot move Top player by setTopFragmentMarginBottom dynamically when bottombar show or hide
Is Anyone using DraggablePanel with Bottombar successful?
Thanks in advanced!