Search in sources :

Example 36 with ActionBar

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));
}
Also used : ActionBar(androidx.appcompat.app.ActionBar)

Example 37 with ActionBar

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);
}
Also used : ActionBar(androidx.appcompat.app.ActionBar)

Example 38 with ActionBar

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());
    }
}
Also used : User(com.meisolsson.githubsdk.model.User) ActionBar(androidx.appcompat.app.ActionBar)

Example 39 with ActionBar

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());
    }
}
Also used : User(com.meisolsson.githubsdk.model.User) ActionBar(androidx.appcompat.app.ActionBar)

Example 40 with ActionBar

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();
}
Also used : User(com.meisolsson.githubsdk.model.User) ActionBar(androidx.appcompat.app.ActionBar)

Aggregations

ActionBar (androidx.appcompat.app.ActionBar)139 View (android.view.View)30 Toolbar (androidx.appcompat.widget.Toolbar)29 AppCompatActivity (androidx.appcompat.app.AppCompatActivity)26 TextView (android.widget.TextView)18 Intent (android.content.Intent)11 Bundle (android.os.Bundle)11 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)8 SuppressLint (android.annotation.SuppressLint)7 AdapterView (android.widget.AdapterView)7 ImageView (android.widget.ImageView)7 Uri (android.net.Uri)6 DefaultItemDecoration (com.yanzhenjie.recyclerview.widget.DefaultItemDecoration)6 SharedPreferences (android.content.SharedPreferences)5 ListView (android.widget.ListView)5 Spinner (android.widget.Spinner)5 Typeface (com.mta.tehreer.graphics.Typeface)5 File (java.io.File)5 MenuItem (android.view.MenuItem)4 Button (android.widget.Button)4