/
index.xml
59 lines (53 loc) 路 1.96 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Alloy>
<Window titleid="details" id="details">
<!-- iOS only -->
<LeftNavButton platform="ios" class="closeButton" onClick="close"></LeftNavButton>
<RightNavButton platform="ios" systemButton="CAMERA" onClick="showCamera"></RightNavButton>
<!-- Android-only -->
<Menu platform="android">
<MenuItem icon="/images/icons/camera.png" onClick="showCamera"></MenuItem>
</Menu>
<ListView id="list" onItemclick="handleAction">
<Templates>
<ItemTemplate name="RatingCell">
<Label text="L('rating')" class="textLabel" />
<ImageView class="ratingImage" bindId="rating" />
</ItemTemplate>
<ItemTemplate name="AdditivesCell">
<Label text="L('additives')" class="textLabel" />
<View class="additivesBackground" bindId="additivesBackground">
<Label class="additives" bindId="additives" />
</View>
</ItemTemplate>
</Templates>
<HeaderView>
<View class="imageContainer" id="innerContainer">
<ScrollView id="images" />
<!-- iOS-only -->
<BlurView platform="ios" class="titleOverlay">
<Label id="title" />
</BlurView>
<!-- Android-only -->
<!-- FIXME: Write CommonJS module to unify BlurView for Android -->
<View platform="android" class="titleOverlay">
<Label id="title" />
</View>
<View id="placeholder" onClick="showCamera">
<ImageView class="placeholderImage" />
<Label class="placeholderText" />
</View>
</View>
</HeaderView>
<ListSection>
<ListItem class="staticRow selectable" itemId="rating" rating:image="/images/icons/stars/0_0.png" template="RatingCell" />
<ListItem class="staticRow selectable" itemId="additives" additives:text="0" template="AdditivesCell" />
</ListSection>
</ListView>
<!-- FIXME: 6.1.0 and later will have a titleid property :-) -->
<AlertDialog id="alert" titleid="additives">
<ButtonNames>
<ButtonName>OK</ButtonName>
</ButtonNames>
</AlertDialog>
</Window>
</Alloy>