Skip to content

Instantly share code, notes, and snippets.

@Ayesha17
Ayesha17 / VideoControllerView
Created August 29, 2017 12:37 — forked from prasad091/VideoControllerView
Custom Media Controller android
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Ayesha17
Ayesha17 / MainActivity.java
Created August 23, 2017 12:43 — forked from marc0x71/MainActivity.java
BottomSheetDialog example
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
openDialog();
}