Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Layout not working while set touch enable=false inside Listview

$
0
0

When I set touchEnabled="false" for a view which was inside my List view template all my list view layout was broken. when i remove the touch enabled property it working fine. Anyone please help me to solve this issue.
Titanium SDK : 3.4.0 ,
OS : IOS and android,
Here is my sample code.

<ListView id="LstView" top="20%" >
<Templates >
<ItemTemplate id="mytemplate" name="template1" >
<View layout="horizontal" width="Ti.UI.FILL" height="50dp" touchEnabled="false" > <View width="Ti.UI.SIZE" height="Ti.UI.SIZE">
<Label bindId="Lbl1" Id="Lbl1" color="black"></Label>
</View>
<View width="Ti.UI.SIZE" height="Ti.UI.SIZE" left="10dp" >
<Label bindId="Lbl2" Id="Lbl2" color="black"></Label>
</View>
<View width="Ti.UI.SIZE" height="Ti.UI.SIZE" left="10dp">
<Label bindId="Lbl3" Id="Lbl3" color="black" ></Label>
</View>
<ImageView image="/images/rhtArrow.png" left="10dp" width="Ti.UI.SIZE" height="Ti.UI.SIZE"></ImageView>
</View>
</ItemTemplate>
</Templates>
<ListSection id="lstSection" >
</ListSection>
</ListView>


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>