本文整理了Java中android.support.v7.app.AppCompatDelegate.setSupportActionBar()
方法的一些代码示例,展示了AppCompatDelegate.setSupportActionBar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppCompatDelegate.setSupportActionBar()
方法的具体详情如下:
包路径:android.support.v7.app.AppCompatDelegate
类名称:AppCompatDelegate
方法名:setSupportActionBar
暂无
代码示例来源:origin: rey5137/material
public ToolbarManager(AppCompatDelegate delegate, Toolbar toolbar, int defaultGroupId, int rippleStyle, Animator animator){
mAppCompatDelegate = delegate;
mToolbar = toolbar;
mCurrentGroup = defaultGroupId;
mRippleStyle = rippleStyle;
mAnimator = animator;
mAppCompatDelegate.setSupportActionBar(toolbar);
}
代码示例来源:origin: k9mail/k-9
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: JZ-Darkal/AndroidHttpCapture
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: north2016/T-MVP
private void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: seven332/EhViewer
/**
* Set a {@link android.widget.Toolbar Toolbar} to act as the {@link android.support.v7.app.ActionBar} for this
* Activity window.
*
* <p>When set to a non-null value the {@link #getActionBar()} method will return
* an {@link android.support.v7.app.ActionBar} object that can be used to control the given toolbar as if it were
* a traditional window decor action bar. The toolbar's menu will be populated with the
* Activity's options menu and the navigation button will be wired through the standard
* {@link android.R.id#home home} menu select action.</p>
*
* <p>In order to use a Toolbar within the Activity's window content the application
* must not request the window feature
* {@link android.view.Window#FEATURE_ACTION_BAR FEATURE_SUPPORT_ACTION_BAR}.</p>
*
* @param toolbar Toolbar to set as the Activity's action bar
*/
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: tgwizard/sls
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: powerpoint45/Lucid-Browser
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
@Override
代码示例来源:origin: google-developer-training/android-fundamentals
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: zoff99/ToxAndroidRefImpl
public void setSupportActionBar(@Nullable Toolbar toolbar)
{
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: calvinaquino/LNReader-Android
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: halzhang/EverExample
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: linchupeng/YourWeather
private void setSupportActionBar(Toolbar mToolbar) {
getDelegate().setSupportActionBar(mToolbar);
}
代码示例来源:origin: thuryn/your-local-weather
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: bradand/XMouse
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: google-developer-training/android-fundamentals-apps-v2
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: Null-Ouwenjie/zhizhihu
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: Light-Team/ModPE-IDE-Source
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: gigabytedevelopers/FireFiles
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: meefik/busybox
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
代码示例来源:origin: andresth/Kandroid
public void setSupportActionBar(@Nullable Toolbar toolbar) {
getDelegate().setSupportActionBar(toolbar);
}
内容来源于网络,如有侵权,请联系作者删除!