Revision 0ab55f0c
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/TableOfContents.java | ||
---|---|---|
86 | 86 |
|
87 | 87 |
int i = 0; |
88 | 88 |
|
89 |
{ |
|
90 |
final Map<String, Object> item = new HashMap<>(); |
|
91 |
item.put(ITEM_IMAGE, R.drawable.icon_example_feedback); |
|
92 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_feedback)); |
|
93 |
item.put(ITEM_SUBTITLE, getText(R.string.example_feedback_subtitle)); |
|
94 |
data.add(item); |
|
95 |
activityMapping.put(i++, FeedbackActivity.class); |
|
96 |
} |
|
97 |
|
|
98 | 89 |
{ |
99 | 90 |
final Map<String, Object> item = new HashMap<>(); |
100 | 91 |
item.put(ITEM_IMAGE, R.drawable.icon_example_monalisa); |
... | ... | |
356 | 347 |
activityMapping.put(i++, MultiblurActivity.class); |
357 | 348 |
} |
358 | 349 |
|
350 |
{ |
|
351 |
final Map<String, Object> item = new HashMap<>(); |
|
352 |
item.put(ITEM_IMAGE, R.drawable.icon_example_feedback); |
|
353 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_feedback)); |
|
354 |
item.put(ITEM_SUBTITLE, getText(R.string.example_feedback_subtitle)); |
|
355 |
data.add(item); |
|
356 |
activityMapping.put(i++, FeedbackActivity.class); |
|
357 |
} |
|
358 |
|
|
359 | 359 |
final SimpleAdapter dataAdapter = new SimpleAdapter(this, data, R.layout.toc_item, new String[] {ITEM_IMAGE, ITEM_TITLE, ITEM_SUBTITLE}, new int[] {R.id.Image, R.id.Title, R.id.SubTitle}); |
360 | 360 |
setListAdapter(dataAdapter); |
361 | 361 |
|
Also available in: Unified diff
Use Transform Feedback to (optionally) display the Normal vectors.