سؤال

I see some kind of action bars in some pre-honeycomb apps. For example in Google docs and picassa tool apps. Some non-google apps have the same action bar too. For example twitter. This bars looks similar. Is there some control or widget?

هل كانت مفيدة؟

المحلول

The Action Bar re-uses items from the Options menu and was introduced in the 3.0 SDK. You enable it in your app by following the instructions here.

For a "pre-honeycombe" app you will still need to build against the 3.0 SDK; increase the targetSdkVersion value in your manifest to "11" and set the minSdkVersion to the lowest Android version you are supporting. For example:

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="11" />
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top