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));
}
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);
}
}
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);
}
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;
}
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();
}
Aggregations