我不想做一件簡單的事情,我的背景的windowTitle必須改變我的應用程序。但是我怎樣才能訪問我的背景的windowTitle?只是一個簡單的事情關於windowsTitle改變Java背景
我style.xml:
<resources>
<style name="CustomWindowTitleBackground">
<item name="android:background">@drawable/fond</item>
</style>
<style name="CustomTheme" parent="android:Theme.Light">
<item name="android:windowTitleSize">40dip</item>
<item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackground</item>
</style>
</resources>
而且在我的活動:
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.page_doc);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
我可怎麼辦呢?
完美,謝謝:D – toshiro92