Button 单击按钮以获取合金时,按钮上的标签文本将消失

Button 单击按钮以获取合金时,按钮上的标签文本将消失,button,label,titanium,Button,Label,Titanium,开发者。 请帮帮我。 我正在使用Tianium SDK开发应用程序。 我遇到了我自己解决不了的问题。 单击按钮时,有时标签文本已消失 我将在这里添加.xml和.tss代码。 ---------------.tss文件------------------ -----------------.xml文件--------------- 按钮不能有嵌套标签。相反,您应该使用按钮的title属性来显示文本 <Button id = "company_button" onClick="onClickC

开发者。 请帮帮我。 我正在使用Tianium SDK开发应用程序。 我遇到了我自己解决不了的问题。 单击按钮时,有时标签文本已消失

我将在这里添加.xml和.tss代码。 ---------------.tss文件------------------

-----------------.xml文件---------------


按钮不能有嵌套标签。相反,您应该使用按钮的
title
属性来显示文本

<Button id = "company_button" onClick="onClickCompany" />

按钮不能有嵌套标签。相反,您应该使用按钮的
title
属性来显示文本

<Button id = "company_button" onClick="onClickCompany" />
样式:Ti.UI.iPhone.SystemButtonStyle.PLAIN

将此添加到按钮样式,并给出标题,希望它能工作

样式:Ti.UI.iPhone.SystemButtonStyle.PLAIN


将此添加到按钮样式,并给出标题,希望它能工作

你好,雷内。谢谢你的帮助。然后仍然没有显示标题。您的XML现在看起来怎么样?是根据我指定的吗?@RongJong您是否也修复了xml的其余部分?当然,我已经修复了。如果你通过skype帮助我,我会很好。我的身份证是flyingdragonj。谢谢,你好,荣融。我没有时间做那件事。相反,加入并四处打听:)你好,雷内。谢谢你的帮助。然后仍然没有显示标题。您的XML现在看起来怎么样?是根据我指定的吗?@RongJong您是否也修复了xml的其余部分?当然,我已经修复了。如果你通过skype帮助我,我会很好。我的身份证是flyingdragonj。谢谢,你好,荣融。我没有时间做那件事。相反,加入并四处询问:)
<Button id = "company_button" onClick="onClickCompany" />
"#company_button": {
    layout: 'vertical',
    top: '60%',
    width: '64%',
    height: '13%',
    backgroundImage : '/images/btn_login_common_normal.png',
    backgroundSelectedImage: '/images/btn_login_common_pressed.png',
    title: "COMPANY",
    color: '#008c99'
}
"#company_button": {
    layout: 'vertical',
    top: '60%',
    width: '64%',
    height: '13%',
    backgroundImage : '/images/btn_login_common_normal.png',
    backgroundSelectedImage: '/images/btn_login_common_pressed.png',
    title: "COMPANY",
    color: '#008c99',
    style:Ti.UI.iPhone.SystemButtonStyle.PLAIN
}