Back

titanium alloy点滴

发布时间: 2015-05-09 06:28:00

tishadow CLI 中无法快速改变一个View的 样式。 一定要修改代码,触发 tishadow 重启app才行。

一定要用grunt watch + grunt newer, 比普通的模式要快很多

View中的绝大部分样式,都可以使用 inline的形式来确定,例如:  <View top='3'/> 跟 createUIView({ top: '3' }) 是一样的。

但是font 是个特例。  front不能使用 <View id='test_view' frontSize='30'  /> 这样的形式来声明,只能在tss中:
'#test_view' : { font:  { frontSize='30'}} 

a = createUIView(... )
a.setVisible(false) 
跟   <View visible='false' /> 是一样的。

TextArea的 是用来编辑的,内容属性是  value, 

Label 是用来显示的, 内容属性是: text

Back