gui*_*fix 3 javascript android titanium appcelerator
https://gyazo.com/7ffd965136f18e44aa87c591e3b90ed9
正如您在我提供的链接中所看到的,当我单击标签或我在View中的ImageView时,涟漪效应不起作用.我怎样才能解决这个问题?
我在6.1.2GA和6.2.2GA SDK中都遇到了这个问题
这是我的XML文件:
<CardView id="selectCard">
<View layout='horizontal' backgroundColor="#fafafa" touchFeedback="true" touchFeedbackColor="#808080">
<ImageView class="icons" id="locationIcon" image="/icons/address.png" top="8dp" bottom="8dp" left="16dp" />
<Label class="titleLabel smallText" text="L('selectInMap')" />
</View>
</CardView>
Run Code Online (Sandbox Code Playgroud)
我尝试删除我的CardView中的View,然后将touchFeedback和touchFeedbackColor属性设置为CardView,但后来我看不到任何涟漪效应
如果您不需要知道用户点击的确切元素,我建议touchEnabled="false"您使用UI元素来阻止涟漪效应.
您可以在文档中阅读更多相关信息:http://docs.appcelerator.com/platform/latest/#!/ api/Titanium.UI.Label-property-touchEnabled
| 归档时间: |
|
| 查看次数: |
366 次 |
| 最近记录: |