Skip to content

Instantly share code, notes, and snippets.

public class MainActivity extends AppCompatActivity implements SlidingUpPanelLayout.PanelSlideListener{
private SupportMapFragment mMapFragment;
private SlidingUpPanelLayout mSlidingUpPanelLayout;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mSlidingUpPanelLayout = (SlidingUpPanelLayout) findViewById(R.id.slidingUpLayout);
mSlidingUpPanelLayout.setPanelSlideListener(this);
mMapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);