Android Activity Title Set setSubtitle(Activity a, int sub)

Here you can find the source of setSubtitle(Activity a, int sub)

Description

set Subtitle

License

Open Source License

Declaration

public static void setSubtitle(Activity a, int sub) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import android.app.ActionBar;
import android.app.Activity;

public class Main {
    public static void setSubtitle(Activity a, int sub) {
        a.getActionBar().setSubtitle(sub);
    }//from w  ww .java  2s.com

    public static void setSubtitle(Activity a, String sub) {
        a.getActionBar().setSubtitle(sub);
    }

    public static ActionBar getActionBar(Activity act) {
        return act.getActionBar();
    }
}

Related

  1. setActivityTitle(Activity activity, int... ids)
  2. setSubtitle(Activity a, String sub)