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

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

Description

set Subtitle

License

Open Source License

Declaration

public static void setSubtitle(Activity a, String 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  w w  .j  a  v  a 2s.  c  o  m*/

    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, int sub)