1
我创建一个警告对话框与Android使用此代码:Android的警告对话框着色关闭
AlertDialog ad = new AlertDialog.Builder(self)
.setTitle("Invalid Input")
.setMessage("The number you entered is not a real number.")
.setNeutralButton("OK",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which){}
}
).show();
我也有一个应用程序的主题,看起来像这样:
<style name="CustomTheme" parent="@android:style/Theme.NoTitleBar">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#222222</item>
<item name="android:background">#DDDDDD</item>
</style>
正如你所看到的,我不是在对话或改变它的颜色,但它显得很奇怪。
它看起来像这样:
有谁知道如何使它显得更正常吗?
您的整体应用程序是否有主题? – 2011-02-15 14:59:03
模拟器或真实设备? – 2011-02-15 14:59:21