public class FullScreenDialog
extends android.app.Dialog
| Modifier and Type | Class and Description |
|---|---|
static interface |
FullScreenDialog.OnDialogCloseListener
Interface close listener
|
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSE_BTN_HEIGHT |
static int |
CLOSE_BTN_WIDTH |
| Constructor and Description |
|---|
FullScreenDialog(android.widget.VideoView videoView,
FullScreenDialog.OnDialogCloseListener closeListener)
Constructor to handle PlayVideo command
|
FullScreenDialog(android.webkit.WebView webView,
FullScreenDialog.OnDialogCloseListener closeListener)
Constructor to handle Expand Commands
|
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
getRootView()
Method is used to get Root view of the dialog View
Child at 0th position of Framelayouot
|
void |
onBackPressed()
Dialogs default callback to handle custom backpress
|
protected void |
onCreate(android.os.Bundle savedInstanceState)
Default onCreate of dialog to set dismiss listener and handle recreate of it
|
protected void |
onStop()
Method will gets called when the dialog gets dismissed
Dialog callback method used to clean up the dialog
|
void |
onWindowFocusChanged(boolean hasFocus)
Dailog callback method to hide status bar when dialog has the focus
|
addContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onStart, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenupublic static final int CLOSE_BTN_WIDTH
public static final int CLOSE_BTN_HEIGHT
public FullScreenDialog(@NonNull
android.webkit.WebView webView,
@NonNull
FullScreenDialog.OnDialogCloseListener closeListener)
webView - instance of WebView which need to be shown inside dialogcloseListener - close listener to handle close eventspublic FullScreenDialog(@NonNull
android.widget.VideoView videoView,
@NonNull
FullScreenDialog.OnDialogCloseListener closeListener)
videoView - instance of VideoView which need to be shown inside dialogcloseListener - close listener to handle close eventsprotected void onCreate(android.os.Bundle savedInstanceState)
onCreate in class android.app.DialogsavedInstanceState - Saved instance objectprotected void onStop()
onStop in class android.app.Dialogpublic void onBackPressed()
onBackPressed in class android.app.Dialogpublic void onWindowFocusChanged(boolean hasFocus)
onWindowFocusChanged in interface android.view.Window.CallbackonWindowFocusChanged in class android.app.DialoghasFocus - boolean value true when dialog has the focus other falsepublic android.view.View getRootView()