find ActionBar Container - Android User Interface

Android examples for User Interface:ActionBar

Description

find ActionBar Container

Demo Code


//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*/
}

Related Tutorials