SHOW:
|
|
- or go back to the newest paste.
1 | - | <View height="52" width="Ti.UI.FILL" zIndex="100" backgroundColor="#33B5E5" top="0"> |
1 | + | /********************************************map & list for ios starts********************************************************/ |
2 | - | <View width="50" height="50" right="50" id= "imapid"><Label text="Map" color="#fff"></Label></View> |
2 | + | $.imapid.addEventListener("click", function(e) { |
3 | - | <View width="50" height="50" right="0" id= "iListid"><Label text="List" color="#fff"></Label></View> |
3 | + | mapview.show(); |
4 | - | </View> |
4 | + | $.locationArrow.show(); |
5 | listview.hide(); | |
6 | $.tableview.setData([]); | |
7 | tracker.send( | |
8 | MapBuilder | |
9 | .createAppView() | |
10 | .set(Fields.SCREEN_NAME, 'Switched to Map View') | |
11 | .build() | |
12 | ); | |
13 | }); | |
14 | ||
15 | ||
16 | $.iListid.addEventListener("click", function(e) { | |
17 | mapview.hide(); | |
18 | listview.show(); | |
19 | $.locationArrow.hide(); | |
20 | $.tableview.setData([]); | |
21 | tracker.send( | |
22 | MapBuilder | |
23 | .createAppView() | |
24 | .set(Fields.SCREEN_NAME, 'Switched to List View') | |
25 | .build() | |
26 | ); | |
27 | }); | |
28 | /*******************************************map & list for ios ends*********************************************************/ |