use of androidx.appcompat.app.ActionBar in project SeriesGuide by UweTrottmann.
the class PeopleActivity method setupActionBar.
@Override
protected void setupActionBar() {
super.setupActionBar();
PeopleType peopleType = PeopleType.valueOf(getIntent().getStringExtra(InitBundle.PEOPLE_TYPE));
setTitle(peopleType == PeopleType.CAST ? R.string.movie_cast : R.string.movie_crew);
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setHomeAsUpIndicator(R.drawable.ic_clear_24dp);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setTitle(peopleType == PeopleType.CAST ? R.string.movie_cast : R.string.movie_crew);
}
}
use of androidx.appcompat.app.ActionBar in project SeriesGuide by UweTrottmann.
the class MovieDetailsActivity method setupActionBar.
@Override
protected void setupActionBar() {
super.setupActionBar();
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setDisplayShowTitleEnabled(false);
}
}
use of androidx.appcompat.app.ActionBar in project SeriesGuide by UweTrottmann.
the class BaseTopActivity method setupActionBar.
@Override
protected void setupActionBar() {
super.setupActionBar();
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setHomeButtonEnabled(false);
}
}
use of androidx.appcompat.app.ActionBar in project twicalico by moko256.
the class SearchResultActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActionBar actionBar = Objects.requireNonNull(getSupportActionBar());
actionBar.setTitle(getIntent().getStringExtra("query"));
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setHomeAsUpIndicator(R.drawable.ic_back_white_24dp);
if (savedInstanceState == null) {
SearchResultFragment fragment = new SearchResultFragment();
fragment.setArguments(getIntent().getExtras());
getSupportFragmentManager().beginTransaction().add(android.R.id.content, fragment).commit();
}
}
use of androidx.appcompat.app.ActionBar in project K6nele by Kaljurand.
the class AboutActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AboutBinding binding = AboutBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
ActionBar ab = getSupportActionBar();
if (ab != null) {
ab.setTitle(R.string.labelApp);
ab.setSubtitle("v" + Utils.getVersionName(this));
}
binding.tvAbout.setMovementMethod(LinkMovementMethod.getInstance());
String about = String.format(getString(R.string.tvAbout), getString(R.string.labelApp), PreferenceUtils.getUniqueId(PreferenceManager.getDefaultSharedPreferences(this)));
binding.tvAbout.setText(Html.fromHtml(about));
}
Aggregations