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 ??
Thanks.
I know this has been answered but here is how I did it...
I saw this on all my Motorola phones X2, Razr...Seems to definitely be a bug in the styles for Motorola.
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
<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!