Java tutorial
//package com.java2s; //License from project: Apache License 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", activity.getPackageName()); return activity.findViewById(id); } }