本文整理了Java中android.support.v7.app.AppCompatDelegate.getSupportActionBar()
方法的一些代码示例,展示了AppCompatDelegate.getSupportActionBar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppCompatDelegate.getSupportActionBar()
方法的具体详情如下:
包路径:android.support.v7.app.AppCompatDelegate
类名称:AppCompatDelegate
方法名:getSupportActionBar
暂无
代码示例来源:origin: k9mail/k-9
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: seven332/EhViewer
/**
* Support library version of {@link android.app.Activity#getActionBar}.
*
* <p>Retrieve a reference to this activity's ActionBar.
*
* @return The Activity's ActionBar, or null if it does not have one.
*/
@Nullable
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: JZ-Darkal/AndroidHttpCapture
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: north2016/T-MVP
@Override
protected void onCreate(Bundle savedInstanceState) {
getDelegate().installViewFactory();
getDelegate().onCreate(savedInstanceState);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_setting);
setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
addPreferencesFromResource(R.xml.settings);
Toolbar toolbar = (Toolbar) this.findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
mDelegate.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
代码示例来源:origin: nekocode/JarFilterPlugin
/**
* Support library version of {@link android.app.Activity#getActionBar}.
*
* <p>Retrieve a reference to this activity's ActionBar.
*
* @return The Activity's ActionBar, or null if it does not have one.
*/
@Nullable
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: rastapasta/pokemon-go-xposed
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: google-developer-training/android-fundamentals-apps-v2
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: zoff99/ToxAndroidRefImpl
public ActionBar getSupportActionBar()
{
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: thuetz/Energize
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: meefik/busybox
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: lincanbin/Android-Carbon-Forum
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: powerpoint45/Lucid-Browser
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
public void setSupportActionBar(@Nullable Toolbar toolbar) {
代码示例来源:origin: nerzhul/ncsms-android
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: bradand/XMouse
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: SecUSo/privacy-friendly-sudoku
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: Snapcept/Snapcept
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: google-developer-training/android-fundamentals
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: tgwizard/sls
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: calvinaquino/LNReader-Android
public ActionBar getSupportActionBar() {
return getDelegate().getSupportActionBar();
}
代码示例来源:origin: linchupeng/YourWeather
private void initView() {
mToolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(mToolbar);
mToolbar.setTitleTextColor(Color.WHITE);
delegate.getSupportActionBar().setDisplayShowTitleEnabled(false);
delegate.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
}
内容来源于网络,如有侵权,请联系作者删除!