ActionBar pre Honeycomb

后端 未结 7 1471
你的背包
你的背包 2020-12-03 00:04

I am writing an app for android (2.1 > 3.1) and I would like to use the familiar practice of using the app Icon in Honeycomb apps to go up to the home activity, however, whe

7条回答
  •  遥遥无期
    2020-12-03 00:43

    From the API Guide for the Action Bar it says:

    the Action Bar Compatibility sample app provides an API layer and action bar layout that allows your app to use some of the ActionBar APIs and also support older versions of Android by replacing the traditional title bar with a custom action bar layout.

    You can get this by installing the Android 4.1 (API 16) samples.

    Then in Eclipse:

    1. Go to File > New > Project
    2. Android > Android Sample Project
    3. Check Android 4.1
    4. Select ActionBarCompat

提交回复
热议问题