Revision 6ce08079
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/TableOfContents.java | ||
---|---|---|
85 | 85 |
final SparseArray<Class<? extends Activity>> activityMapping = new SparseArray<>(); |
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 |
|
|
89 | 98 |
{ |
90 | 99 |
final Map<String, Object> item = new HashMap<>(); |
91 | 100 |
item.put(ITEM_IMAGE, R.drawable.icon_example_monalisa); |
... | ... | |
347 | 356 |
activityMapping.put(i++, MultiblurActivity.class); |
348 | 357 |
} |
349 | 358 |
|
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
This commit (and reading the OpenGL ES 3.0 spec) pretty conclusively proves that, sadly, Nexus 4's Transform Feedback implementation is incomplete (doesn't work with GL_TRIANGLES primitiveMode)