【问题标题】:Error on windows open打开窗口时出错
【发布时间】:2016-02-24 14:49:23
【问题描述】:

我有这个简单的代码:

var win = Ti.UI.createWindow({
     title: 'aaa',
     width: '100%',
     height: '100%',
     backgroundColor: '#eff2d8'
 });
 win.orientationModes = [Ti.UI.PORTRAIT];
 win.open();

在 Win.open 命令之后我得到了这个错误:

SpannableStringBuilder:SPAN_EXCLUSIVE_EXCLUSIVE 跨度的长度不能为零

谁能帮帮我?

【问题讨论】:

  • 这是你的全部代码吗?

标签: android appcelerator appcelerator-titanium


【解决方案1】:

这可能是因为您使用的是 3rd 方键盘而不是本机手机键盘。 SwiftKey 经常发生这种情况。

Android - SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

【讨论】:

  • 我使用的是三星 GT-I9300,Android 版本 4.1.2
【解决方案2】:

让它更简单

 var win = Ti.UI.createWindow({
     title: 'aaa',
     width: Ti.UI.FILL,
     height: Ti.UI.FILL,
     backgroundColor: '#eff2d8'
 });
 win.open();

这对你有用吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-18
    • 1970-01-01
    • 1970-01-01
    • 2018-07-27
    相关资源
    最近更新 更多