在styles.xml中,以我的用戶風格,我無法設置窗口標題大小(高度)。Android styles.xml窗口標題
它總是一樣的。
<item name="android:windowTitleSize">20dip</item>
和
<style name="my_menu" parent="@android:style/Theme.Dialog">
<item name="android:windowTitleStyle">@style/CustomMenuTitle</item>
...
<style/>
<style name="CustomMenuTitle" >
<item name="android:layout_height">12dip</item>
<item name="android:windowTitleSize">12dip</item>
<style/>
*編輯*
in manifest.xml:
<activity android:name=".DlgSubmenuZnajdz"
android:screenOrientation="sensor"
android:configChanges="orientation|keyboardHidden"
android:theme="@style/my_menu">
</activity>
不工作。
我該怎麼辦?
能否請您發表您的'AndroidManifest.xml'文件? – Mauker
請參閱*編輯*有問題的清單片段。 – theWalker
my_style在沒有這一項的情況下正常工作:標題的大小。 Bkg,文字大小和顏色我可能會改變而沒有問題。 – theWalker