How to get ActionBar view?

Yep. You can actually get the view by using this function: public View getActionBarView() { Window window = getWindow(); View v = window.getDecorView(); int resId = getResources().getIdentifier(“action_bar_container”, “id”, “android”); return v.findViewById(resId); } Pretty much the way this works is that the actionbar container uses the id android.R.id.action_bar_container, but this id is not public. Therefore we … Read more

How do you create a transparent demo screen for an Android app?

Put your demo info in a different activity and give it the following theme. <style name=”Transparent” parent=”@android:style/Theme.NoTitleBar”> <item name=”android:windowContentOverlay”>@null</item> <item name=”android:windowIsTranslucent”>true</item> <item name=”android:windowBackground”>@android:color/transparent</item> <item name=”android:windowNoTitle”>true</item> <item name=”android:backgroundDimEnabled”>false</item> </style> If you’re using ActionBarSherlock change parent to @style/Theme.Sherlock. This will give you a transparent activity, so you will be able to see the activity below it. Now … Read more