Android扩展:WINDOWTITLE [英] Extending android:WindowTitle
问题描述
我想延长的android:WINDOWTITLE
但父=机器人:WINDOWTITLE
不再更新的SDK工作。这是一个私人的风格
But parent="android:WindowTitle"
no longer works in newer SDKs. It's a private style
什么是良好的公共替代父=机器人:WINDOWTITLE
?
What is a good public replacement for parent="android:WindowTitle"
?
我迷路阅读本<一个href=\"http://groups.google.com/group/android-developers/browse_thread/thread/550fce9670530d9b/9b2b2aa389dce367?show_docid=9b2b2aa389dce367\"相对=nofollow>线程。
有关使用任何alernative方式&LT;样式名称=CustomWindowTitle父=机器人:WINDOWTITLE&GT;
带出机器相关的热修复,使我的code代表队的其他编制?
Any alernative way for using <style name="CustomWindowTitle" parent="android:WindowTitle">
with out machine dependent hot fixes so that my code compiles for rest of the team?
推荐答案
您可以打开Android的SDK-WINDOWS \\平台\\ Android的6 \\ DATA \\资源\\值\\ styles.xml并从那里copypaste你的风格。
You can open android-sdk-windows\platforms\android-6\data\res\values\styles.xml and copypaste your style from there.
我可以看到有类似
<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>
所以,你可以在你的code定义相同或相似的风格。在Android SDK中一般,数据/ RES
目录包含许多有趣的资源。
So you can define the same or similar style in your code. Generally, data/res
directory in android SDK contains many interesting resources.
这篇关于Android扩展:WINDOWTITLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!