Android Utililty Methods Activity Title Set

List of utility methods to do Activity Title Set

Description

The list of methods to do Activity Title Set are organized into topic(s).

Method

voidsetActivityTitle(Activity activity, int... ids)
set Activity Title
StringBuilder title = new StringBuilder();
for (int i = 0; i < ids.length; i++) {
    title.append(activity.getString(ids[i]));
    if (i < ids.length - 1) {
        title.append(TITLE_ENTRIES_SEPARATOR);
activity.setTitle(title);
...
voidsetSubtitle(Activity a, int sub)
set Subtitle
a.getActionBar().setSubtitle(sub);
voidsetSubtitle(Activity a, String sub)
set Subtitle
a.getActionBar().setSubtitle(sub);