listview - Titanium alloy list only 2 items display -
i attempting create list view in titanium using alloy model. have 1 view nested within view. idea create 3 lines, 1 horizontal. displays first two, , not third (i can change order, still display whatever first 2 lines are.
listtemplate.xml:
<templates> <itemtemplate name="sampletemplate"> <view class="templatesection"> <label class="listitem" id="firstitem" bindid="firstitem" /> <label class="listitem" id="seconditem" bindid="seconditem" /> <view class="listitem" id="duedate"> <label class="listitem" id="datelabel" text="date due: " /> <label class="listitem" id="duedate" bindid="taskduedate" /> </view> </view> </itemtemplate> </templates>
listtemplate.tss
".listitem": { top: "1dp", left: "0" } ".templatesection":{ layout: "vertical", textalign: ti.ui.text_alignment_left, left: "4dp" } "#duedate": { layout: "horizontal" }
again, works fine first 2 labels, nested view not display. if move #seconditem below #duedate view, view shows, , #seconditem not. i've experimented height, doesn't seem fix it.
of note, tried create 3 views stacked, add labels #firstitem , #seconditem way there hard coded label, dynamic item in nested view. when did that, 1 of 3 items displayed (the first one).
Comments
Post a Comment