Positioning AndroidSlidingUpPanel to a specific height
问题 I am exploring https://github.com/umano/AndroidSlidingUpPanel library. When I slide the bottom panel, on slide complete it acquires complete screen area. Can anyone help me, How to stop the bottom panel to a certain height, for e.g. slide it till middle of screen?? 回答1: Have you considered using setAnchorPoint(float) ? From the DemoActivity in the SlidingUpPanelDemo project SlidingUpPanelLayout layout = (SlidingUpPanelLayout) findViewById(R.id.sliding_layout); layout.setAnchorPoint(0.3f);