...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 either match_parent, wrap_content or the max desireable height.