为什么我不能够看到正确的自定义对话框中摩托罗拉Atrix模拟器? [英] Why I am not able to see proper custom dialog Box in Motorola Atrix Emulator?
问题描述
我已经创建自定义对话框我的应用程序。
虽然我运行正常三星Galary王牌该应用程序的话,就说明在适当的设备,但,当我要运行该应用程序在摩托罗拉Atrix那么自定义对话框没有看到合适的边界。 。 。
请参阅摩托罗拉Atrix模拟器的形象与我的自定义对话框中它。
I have created Custom Dialog for my application. While i run that application in normal Samsung Galary Ace then it shows proper in that device but while i am going to run that app in Motorola Atrix then the Custom Dialog Box not seen proper with the border. . . Please see the Image of Motorola Atrix Emulator with my Custom Dialog in it.
我应该要删除自定义对话框的边框,还有什么我所要做的,看在任何设备只有我的自定义对话框?
如果非要从自定义对话框中删除边框,然后让我知道如何??
Should i have to remove the border of the custom dialog or what else i have to do to see only my custom dialog in any device ? If i have to remove the border from the custom dialog then let me know how ??
感谢。
推荐答案
我知道这已经回答了,但这里是我做到了......
I know this has been answered but here is how I did it...
我看见我所有的摩托罗拉手机X2,... Razr手机似乎肯定会在样式摩托罗拉的错误。
I saw this on all my Motorola phones X2, Razr...Seems to definitely be a bug in the styles for Motorola.
我固定它从我的\\ Android的SDK \\平台创建我自己的风格和复印panel_background \\ Android的10 \\ DATA \\水库\\绘制,华电国际,并把它在我的绘制。如果我用@android引用它的Eclipse不会编译:绘制/ panel_background
I fixed it by creating my own style and copying panel_background from my \android-sdk\platforms\android-10\data\res\drawable-hdpi and placing it in my drawable. Eclipse wouldn't compile if I referenced it using @android:drawable/panel_background.
styles.xml
styles.xml
<style name="Theme.CustomDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/panel_background</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
</style>
然后,只需调用对话框添加了主题参数
Then just call the dialog with the Theme parameter added
Dialog dialog = new Dialog(this, R.style.Theme_CustomDialog);
有固定的摩托罗拉的问题!
There fixed Motorola issues!
这篇关于为什么我不能够看到正确的自定义对话框中摩托罗拉Atrix模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!