Extending android:WindowTitle

前端 未结 1 2008
野的像风
野的像风 2021-01-13 03:40

I wish to extend android:WindowTitle

But parent=\"android:WindowTitle\" no longer works in newer SDKs. It\'s a private style

What

相关标签:
1条回答
  • 2021-01-13 04:25

    You can open android-sdk-windows\platforms\android-6\data\res\values\styles.xml and copypaste your style from there.

    I can see in there something like

    <style name="WindowTitle">
            <item name="android:singleLine">true</item>
            <item name="android:textAppearance">@style/TextAppearance.WindowTitle</item>
            <item name="android:shadowColor">#BB000000</item>
            <item name="android:shadowRadius">2.75</item>
    </style>
    

    So you can define the same or similar style in your code. Generally, data/res directory in android SDK contains many interesting resources.

    0 讨论(0)
提交回复
热议问题