Search in sources :

Example 66 with Toolbar

use of android.support.v7.widget.Toolbar in project PhotoNoter by yydcdut.

the class AboutAppActivity method initToolBarUI.

private void initToolBarUI() {
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    toolbar.setTitle(getResources().getString(R.string.about_setting));
    setSupportActionBar(toolbar);
    toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);
    AppCompat.setElevation(toolbar, getResources().getDimension(R.dimen.ui_elevation));
}
Also used : Toolbar(android.support.v7.widget.Toolbar)

Example 67 with Toolbar

use of android.support.v7.widget.Toolbar in project PhotoNoter by yydcdut.

the class DetailActivity method initToolBar.

private void initToolBar() {
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    toolbar.setBackgroundColor(Color.TRANSPARENT);
    toolbar.setTitle(" ");
    toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);
    if (AppCompat.AFTER_LOLLIPOP) {
        int size = getStatusBarSize();
        FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) toolbar.getLayoutParams();
        layoutParams.setMargins(0, size, 0, 0);
    }
}
Also used : FrameLayout(android.widget.FrameLayout) Point(android.graphics.Point) Toolbar(android.support.v7.widget.Toolbar)

Example 68 with Toolbar

use of android.support.v7.widget.Toolbar in project WordPress-Android by wordpress-mobile.

the class ThemeBrowserActivity method showToolbar.

protected void showToolbar() {
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    ActionBar actionBar = getSupportActionBar();
    actionBar.setDisplayShowTitleEnabled(true);
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setTitle(R.string.themes);
    findViewById(R.id.toolbar).setVisibility(View.VISIBLE);
    findViewById(R.id.toolbar_search).setVisibility(View.GONE);
}
Also used : ActionBar(android.support.v7.app.ActionBar) Toolbar(android.support.v7.widget.Toolbar)

Example 69 with Toolbar

use of android.support.v7.widget.Toolbar in project iosched by google.

the class VideoLibraryFilteredActivity method onCreateOptionsMenu.

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);
    // Add the filter button to the toolbar.
    Toolbar toolbar = getToolbar();
    toolbar.inflateMenu(R.menu.video_library_filtered);
    toolbar.setOnMenuItemClickListener(this);
    return true;
}
Also used : Toolbar(android.support.v7.widget.Toolbar)

Example 70 with Toolbar

use of android.support.v7.widget.Toolbar in project PocketHub by pockethub.

the class LoginActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.login);
    clientId = getString(R.string.github_client);
    secret = getString(R.string.github_secret);
    redirectUri = getString(R.string.github_oauth);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    accountManager = AccountManager.get(this);
    accounts = accountManager.getAccountsByType(getString(R.string.account_type));
    if (accounts != null && accounts.length > 0) {
        openMain();
    }
    checkOauthConfig();
}
Also used : Toolbar(android.support.v7.widget.Toolbar)

Aggregations

Toolbar (android.support.v7.widget.Toolbar)496 View (android.view.View)358 ActionBar (android.support.v7.app.ActionBar)178 TextView (android.widget.TextView)167 RecyclerView (android.support.v7.widget.RecyclerView)134 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)123 ImageView (android.widget.ImageView)84 Intent (android.content.Intent)75 ActionBarDrawerToggle (android.support.v7.app.ActionBarDrawerToggle)56 ArrayList (java.util.ArrayList)56 BindView (butterknife.BindView)46 AppCompatActivity (android.support.v7.app.AppCompatActivity)41 AdapterView (android.widget.AdapterView)41 NavigationView (android.support.design.widget.NavigationView)39 BarPainter (com.xabber.android.ui.color.BarPainter)36 MenuItem (android.view.MenuItem)35 FloatingActionButton (android.support.design.widget.FloatingActionButton)31 ViewPager (android.support.v4.view.ViewPager)31 ViewGroup (android.view.ViewGroup)31 Bundle (android.os.Bundle)29