use of android.support.v7.app.ActionBar in project bilibili-android-client by HotBitmapGG.
the class VideoDetailsActivity method initToolBar.
@SuppressLint("SetTextI18n")
@Override
public void initToolBar() {
mToolbar.setTitle("");
setSupportActionBar(mToolbar);
ActionBar supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.setDisplayHomeAsUpEnabled(true);
}
//设置还没收缩时状态下字体颜色
mCollapsingToolbarLayout.setExpandedTitleColor(Color.TRANSPARENT);
//设置收缩后Toolbar上字体的颜色
mCollapsingToolbarLayout.setCollapsedTitleTextColor(Color.WHITE);
//设置StatusBar透明
SystemBarHelper.immersiveStatusBar(this);
SystemBarHelper.setHeightAndPadding(this, mToolbar);
mAvText.setText("av" + av);
}
use of android.support.v7.app.ActionBar in project bilibili-android-client by HotBitmapGG.
the class LiveAppIndexActivity method initToolBar.
@Override
public void initToolBar() {
mToolbar.setTitle("直播");
setSupportActionBar(mToolbar);
ActionBar supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.setDisplayHomeAsUpEnabled(true);
}
}
use of android.support.v7.app.ActionBar in project bilibili-android-client by HotBitmapGG.
the class BrowserActivity method initToolBar.
@Override
public void initToolBar() {
mToolbar.setTitle(TextUtils.isEmpty(mTitle) ? "详情" : mTitle);
setSupportActionBar(mToolbar);
ActionBar supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.setDisplayHomeAsUpEnabled(true);
}
}
use of android.support.v7.app.ActionBar in project bilibili-android-client by HotBitmapGG.
the class BangumiIndexActivity method initToolBar.
@Override
public void initToolBar() {
mToolbar.setTitle("番剧索引");
setSupportActionBar(mToolbar);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
}
}
use of android.support.v7.app.ActionBar in project bilibili-android-client by HotBitmapGG.
the class ChaseBangumiActivity method initToolBar.
@Override
public void initToolBar() {
mToolbar.setTitle("追番");
setSupportActionBar(mToolbar);
ActionBar mActionBar = getSupportActionBar();
if (mActionBar != null) {
mActionBar.setDisplayHomeAsUpEnabled(true);
}
}
Aggregations