Android examples for User Interface:ActionBar
find ActionBar Container
//package com.java2s; import android.app.Activity; import android.view.View; public class Main { public static View findActionBarContainer(Activity activity) { int id = activity.getResources().getIdentifier( "action_bar_container", "id", "android"); return activity.findViewById(id); }/* w w w.j av a 2 s.co m*/ }