【问题标题】:Dialog not showing in android对话框未在android中显示
【发布时间】:2020-07-07 00:46:31
【问题描述】:

我调用一个简单的Dialog.show("Notification", value)

当它在 android 上被调用时它没有显示并且我收到一个错误。

[EDT] 0:0:36,628 - Exception: java.lang.IllegalArgumentException - Rows and columns must be greater than zero

java.lang.IllegalArgumentException:行和列必须大于零

不知道怎么解决?

【问题讨论】:

  • 基本上得到了答案,该节目必须至少有按钮标签,并且不能在没有最少四个参数的情况下调用

标签: codenameone


【解决方案1】:

基本上得到了答案,该节目必须至少有一个按钮标签,并且不能在没有最少四个参数的情况下调用。

Dialog.show("Notification", bodyOfNotification, "OK", null));

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-08-08
    • 2021-03-06
    • 1970-01-01
    • 2012-06-11
    • 1970-01-01
    相关资源
    最近更新 更多