本文整理汇总了Java中com.google.android.gms.cast.framework.IntroductoryOverlay类的典型用法代码示例。如果您正苦于以下问题:Java IntroductoryOverlay类的具体用法?Java IntroductoryOverlay怎么用?Java IntroductoryOverlay使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IntroductoryOverlay类属于com.google.android.gms.cast.framework包,在下文中一共展示了IntroductoryOverlay类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: showIntroductoryOverlay
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
private void showIntroductoryOverlay() {
if (mIntroductoryOverlay != null) {
mIntroductoryOverlay.remove();
}
if ((mediaRouteMenuItem != null) && mediaRouteMenuItem.isVisible()) {
new Handler().post(new Runnable() {
@Override
public void run() {
mIntroductoryOverlay = new IntroductoryOverlay.Builder(
EmdaHovedAkt.this, mediaRouteMenuItem)
.setTitleText(getString(R.string.introducing_cast))
.setOverlayColor(R.color.primary)
.setSingleTime()
.setOnOverlayDismissedListener(
new IntroductoryOverlay.OnOverlayDismissedListener() {
@Override
public void onOverlayDismissed() {
mIntroductoryOverlay = null;
}
})
.build();
mIntroductoryOverlay.show();
}
});
}
}
开发者ID:nordfalk,项目名称:EsperantoRadio,代码行数:27,代码来源:EmdaHovedAkt.java
示例2: showIntroductoryOverlay
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
private void showIntroductoryOverlay() {
if (mIntroductoryOverlay != null) {
mIntroductoryOverlay.remove();
}
if ((mediaRouteMenuItem != null) && mediaRouteMenuItem.isVisible()) {
new Handler().post(new Runnable() {
@Override
public void run() {
mIntroductoryOverlay = new IntroductoryOverlay.Builder(
VideoBrowserActivity.this, mediaRouteMenuItem)
.setTitleText(getString(R.string.introducing_cast))
.setOverlayColor(R.color.primary)
.setSingleTime()
.setOnOverlayDismissedListener(
new IntroductoryOverlay.OnOverlayDismissedListener() {
@Override
public void onOverlayDismissed() {
mIntroductoryOverlay = null;
}
})
.build();
mIntroductoryOverlay.show();
}
});
}
}
开发者ID:nordfalk,项目名称:EsperantoRadio,代码行数:27,代码来源:VideoBrowserActivity.java
示例3: showIntroductoryOverlay
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
private void showIntroductoryOverlay() {
if (mIntroductoryOverlay != null) {
mIntroductoryOverlay.remove();
}
if ((mediaRouteMenuItem != null) && mediaRouteMenuItem.isVisible()) {
new Handler().post(new Runnable() {
@Override
public void run() {
mIntroductoryOverlay = new IntroductoryOverlay.Builder(
NiclasHovedAkt.this, mediaRouteMenuItem)
.setTitleText(getString(R.string.introducing_cast))
.setOverlayColor(R.color.primary)
.setSingleTime()
.setOnOverlayDismissedListener(
new IntroductoryOverlay.OnOverlayDismissedListener() {
@Override
public void onOverlayDismissed() {
mIntroductoryOverlay = null;
}
})
.build();
mIntroductoryOverlay.show();
}
});
}
}
开发者ID:nordfalk,项目名称:EsperantoRadio,代码行数:27,代码来源:NiclasHovedAkt.java
示例4: showIntroductoryOverlay
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
private void showIntroductoryOverlay() {
if (mIntroductoryOverlay != null) {
mIntroductoryOverlay.remove();
}
if ((mediaRouteMenuItem != null) && mediaRouteMenuItem.isVisible()) {
new Handler().post(new Runnable() {
@Override
public void run() {
mIntroductoryOverlay = new IntroductoryOverlay.Builder(
VideoBrowserActivity.this, mediaRouteMenuItem)
.setTitleText("Introducing Cast")
.setSingleTime()
.setOnOverlayDismissedListener(
new IntroductoryOverlay.OnOverlayDismissedListener() {
@Override
public void onOverlayDismissed() {
mIntroductoryOverlay = null;
}
})
.build();
mIntroductoryOverlay.show();
}
});
}
}
开发者ID:googlecodelabs,项目名称:cast-videos-android,代码行数:26,代码来源:VideoBrowserActivity.java
示例5: showIntroductoryOverlay
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
private void showIntroductoryOverlay() {
if (introductoryOverlay != null) {
introductoryOverlay.remove();
}
if ((mediaRouteMenuItem != null) && mediaRouteMenuItem.isVisible()) {
new Handler().post(new Runnable() {
@Override
public void run() {
introductoryOverlay = new IntroductoryOverlay.Builder(
getActivity(), mediaRouteMenuItem)
.setTitleText("Touch to cast videos to your TV")
.setSingleTime()
.setOnOverlayDismissedListener(
new IntroductoryOverlay.OnOverlayDismissedListener() {
@Override
public void onOverlayDismissed() {
introductoryOverlay = null;
}
})
.build();
introductoryOverlay.show();
}
});
}
}
开发者ID:lawloretienne,项目名称:Loop,代码行数:26,代码来源:WatchLaterVideosFragment.java
示例6: showIntroductoryOverlay
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
/**
* 説明を表示.
*/
private void showIntroductoryOverlay() {
if (mIntroductoryOverlay != null) {
mIntroductoryOverlay.remove();
}
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
if ((mediaRouteMenuItem != null) && mediaRouteMenuItem.isVisible()) {
mIntroductoryOverlay = new IntroductoryOverlay.Builder(
ChromeCastSettingFragmentActivity.this, mediaRouteMenuItem)
.setTitleText(getString(R.string.introducing_cast))
.setOverlayColor(R.color.primary)
.setSingleTime()
.setOnOverlayDismissedListener(
new IntroductoryOverlay.OnOverlayDismissedListener() {
@Override
public void onOverlayDismissed() {
mIntroductoryOverlay = null;
}
})
.build();
mIntroductoryOverlay.show();
}
}
}, 500);
}
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:30,代码来源:ChromeCastSettingFragmentActivity.java
示例7: showFtu
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
/**
* Shows the Cast First Time User experience to the user (an overlay that explains what is
* the Cast icon)
*/
private void showFtu() {
Menu menu = mToolbar.getMenu();
View view = menu.findItem(R.id.media_route_menu_item).getActionView();
if (view != null && view instanceof MediaRouteButton) {
IntroductoryOverlay overlay = new IntroductoryOverlay.Builder(this, mMediaRouteMenuItem)
.setTitleText(R.string.touch_to_cast)
.setSingleTime()
.build();
overlay.show();
}
}
开发者ID:googlesamples,项目名称:android-UniversalMusicPlayer,代码行数:16,代码来源:ActionBarCastActivity.java
示例8: createIntroductionOverlay
import com.google.android.gms.cast.framework.IntroductoryOverlay; //导入依赖的package包/类
private IntroductoryOverlay createIntroductionOverlay(MenuItem menuItem) {
return new IntroductoryOverlay.Builder(activity, menuItem)
.setTitleText(R.string.casty_introduction_text)
.setSingleTime()
.build();
}
开发者ID:DroidsOnRoids,项目名称:Casty,代码行数:7,代码来源:Casty.java
注:本文中的com.google.android.gms.cast.framework.IntroductoryOverlay类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论