Search in sources :

Example 51 with ActionBar

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);
}
Also used : ActionBar(android.support.v7.app.ActionBar) SuppressLint(android.annotation.SuppressLint)

Example 52 with ActionBar

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);
    }
}
Also used : ActionBar(android.support.v7.app.ActionBar)

Example 53 with ActionBar

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);
    }
}
Also used : ActionBar(android.support.v7.app.ActionBar)

Example 54 with ActionBar

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);
    }
}
Also used : ActionBar(android.support.v7.app.ActionBar)

Example 55 with ActionBar

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);
    }
}
Also used : ActionBar(android.support.v7.app.ActionBar)

Aggregations

ActionBar (android.support.v7.app.ActionBar)784 View (android.view.View)248 Toolbar (android.support.v7.widget.Toolbar)214 TextView (android.widget.TextView)160 Intent (android.content.Intent)118 ImageView (android.widget.ImageView)76 AppCompatActivity (android.support.v7.app.AppCompatActivity)66 RecyclerView (android.support.v7.widget.RecyclerView)57 AdapterView (android.widget.AdapterView)52 Bundle (android.os.Bundle)49 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)49 ListView (android.widget.ListView)44 ColorDrawable (android.graphics.drawable.ColorDrawable)33 ActionBarDrawerToggle (android.support.v7.app.ActionBarDrawerToggle)32 ViewPager (android.support.v4.view.ViewPager)29 ArrayList (java.util.ArrayList)29 SharedPreferences (android.content.SharedPreferences)28 Fragment (android.support.v4.app.Fragment)28 MenuItem (android.view.MenuItem)28 BindView (butterknife.BindView)28