android.support.v7.app.MediaRouteControllerDialog Java Examples
The following examples show how to use
android.support.v7.app.MediaRouteControllerDialog.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SampleMediaRouterActivity.java From V.FlyoutTest with MIT License | 5 votes |
@Override public boolean onCreateOptionsMenu(Menu menu) { // Be sure to call the super class. super.onCreateOptionsMenu(menu); // Inflate the menu and configure the media router action provider. getMenuInflater().inflate(R.menu.sample_media_router_menu, menu); MenuItem mediaRouteMenuItem = menu.findItem(R.id.media_route_menu_item); MediaRouteActionProvider mediaRouteActionProvider = (MediaRouteActionProvider)MenuItemCompat.getActionProvider(mediaRouteMenuItem); mediaRouteActionProvider.setRouteSelector(mSelector); mediaRouteActionProvider.setDialogFactory(new MediaRouteDialogFactory() { @Override public MediaRouteControllerDialogFragment onCreateControllerDialogFragment() { return new MediaRouteControllerDialogFragment() { @Override public MediaRouteControllerDialog onCreateControllerDialog( Context context, Bundle savedInstanceState) { mControllerDialog = new SampleMediaRouteControllerDialog( context, mSessionManager, mPlayer); return mControllerDialog; } }; } }); // Return true to show the menu. return true; }
Example #2
Source File: MediaRouteControllerDialogFactory.java From delion with Apache License 2.0 | 4 votes |
@Override public Dialog onCreateDialog(Bundle saved) { mVisibilitySaver.saveSystemVisibility(getActivity()); return new MediaRouteControllerDialog(getActivity()); }
Example #3
Source File: MediaRouteControllerDialogFactory.java From AndroidChromium with Apache License 2.0 | 4 votes |
@Override public Dialog onCreateDialog(Bundle saved) { mVisibilitySaver.saveSystemVisibility(getActivity()); return new MediaRouteControllerDialog(getActivity()); }
Example #4
Source File: MediaRouteControllerDialogFactory.java From 365browser with Apache License 2.0 | 4 votes |
@Override public Dialog onCreateDialog(Bundle saved) { mVisibilitySaver.saveSystemVisibility(getActivity()); return new MediaRouteControllerDialog(getActivity()); }
Example #5
Source File: CustomMediaRouteControllerDialogFragment.java From Popeens-DSub with GNU General Public License v3.0 | 4 votes |
@Override public MediaRouteControllerDialog onCreateControllerDialog(Context context, Bundle savedInstanceState) { return new MediaRouteControllerDialog(context, ThemeUtil.getThemeRes(context)); }