How To Implement Umano/androidslidinguppanel Lib
My App has a map fragment . And on clicking marker , an slide up animation shows from bottom to half of screen . And it slide down on clicking marker again . I want : Slide up men
Solution 1:
I suggest you to use AndroidSlidingUpPanel library, that can be found here. There is no point for you to write the same thing again.
It has what you need and much more. It is easy to use and modify (I am using it in my project).
How to use
- Include
com.sothree.slidinguppanel.SlidingUpPanelLayout
as the root element in your activity layout. - The layout must have gravity set to either top or bottom.
- Make sure that it has two children. The first child is your main layout. The second child is your layout for the sliding up panel.
- The main layout should have the width and the height set to
match_parent
. - The sliding layout should have the width set to
match_parent
and the height set to eithermatch_parent
,wrap_content
or the max desireable height. - By default, the whole panel will act as a drag region and will intercept clicks and drag events. You can restrict the drag area to a specific view by using the
setDragView
method orumanoDragView
attribute.
Post a Comment for "How To Implement Umano/androidslidinguppanel Lib"