use of androidx.appcompat.app.ActionBar in project PocketHub by pockethub.
the class CreateCommentActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
issueNumber = getIntent().getIntExtra(EXTRA_ISSUE_NUMBER, -1);
repositoryId = getIntent().getParcelableExtra(Intents.EXTRA_REPOSITORY);
super.onCreate(savedInstanceState);
setContentView(R.layout.pager_with_tabs);
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(getString(R.string.issue_title) + issueNumber);
actionBar.setSubtitle(InfoUtils.createRepoId(repositoryId));
}
use of androidx.appcompat.app.ActionBar in project PocketHub by pockethub.
the class IssueBrowseActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_repo_issue_list);
repo = getIntent().getParcelableExtra(EXTRA_REPOSITORY);
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(repo.name());
actionBar.setSubtitle(repo.owner().login());
actionBar.setDisplayHomeAsUpEnabled(true);
}
use of androidx.appcompat.app.ActionBar in project PocketHub by pockethub.
the class EditCommentActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
gist = getIntent().getParcelableExtra(EXTRA_GIST);
comment = getIntent().getParcelableExtra(EXTRA_COMMENT);
super.onCreate(savedInstanceState);
setContentView(R.layout.pager_with_tabs);
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(getString(R.string.gist_title) + gist.id());
User user = gist.owner();
if (user != null) {
actionBar.setSubtitle(user.login());
}
}
use of androidx.appcompat.app.ActionBar in project PocketHub by pockethub.
the class CreateCommentActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.pager_with_tabs);
gist = getIntent().getParcelableExtra(EXTRA_GIST);
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(getString(R.string.gist_title) + gist.id());
User user = gist.owner();
if (user != null) {
actionBar.setSubtitle(user.login());
}
}
use of androidx.appcompat.app.ActionBar in project PocketHub by pockethub.
the class RepositoryContributorsActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_repo_contributors);
repository = getIntent().getParcelableExtra(EXTRA_REPOSITORY);
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(repository.name());
actionBar.setSubtitle(R.string.contributors);
actionBar.setDisplayHomeAsUpEnabled(true);
User owner = repository.owner();
}
Aggregations