<manifest xmlns:android="http://schemas.android.com/apk/res/android" ... > <uses-sdk android:minSdkVersion"15" /> ...</manifest> |
private void setUpActionBar() { // Make sure we're running on Honeycomb or higher to use ActionBar APIs * if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { * ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); } } |
<activity android:theme="@android:style/Theme.Dialog"> |
<activity android:theme="@android:style/Theme.Translucent"> |
<activity android:theme="@style/CustomTheme"> |
<application android:theme="@style/CustomTheme"> |
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |