80,493
社区成员
发帖
与我相关
我的任务
分享
<application android:name="AppName" android:label="@string/appName"
android:icon="@mipmap/ic_launcher_settings"
android:taskAffinity=""
android:theme="@style/perference_set_activity" android:uiOptions="splitActionBarWhenNarrow"
android:hardwareAccelerated="true">
<!-- Settings -->
<activity android:name="ActivityName"
android:label="@string/activityName"
android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="ThemeForCustomTitle" parent="android:Theme">
<item name="android:windowTitleStyle">@null</item>
<item name="android:windowTitleBackgroundStyle">@style/StatusBarBackground</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="StatusBarBackground">
<item name="android:background">@drawable/progress</item>
</style>
</resources>
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title_bar);
TextView titleText = (TextView) findViewById(R.id.titleText);
titleText.setText(R.string.listenPA);