Revision 53d59408
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/examples/TableOfContents.java | ||
---|---|---|
69 | 69 |
import org.distorted.examples.stencil.StencilActivity; |
70 | 70 |
import org.distorted.examples.glow.GlowActivity; |
71 | 71 |
import org.distorted.examples.movingglow.MovingGlowActivity; |
72 |
import org.distorted.examples.mali.MaliActivity; |
|
73 | 72 |
|
74 | 73 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
75 | 74 |
|
... | ... | |
407 | 406 |
activityMapping.put(i++, MovingGlowActivity.class); |
408 | 407 |
} |
409 | 408 |
|
410 |
{ |
|
411 |
final Map<String, Object> item = new HashMap<>(); |
|
412 |
item.put(ITEM_IMAGE, R.drawable.icon_example_wip); |
|
413 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_mali)); |
|
414 |
item.put(ITEM_SUBTITLE, getText(R.string.example_mali_subtitle)); |
|
415 |
data.add(item); |
|
416 |
activityMapping.put(i++, MaliActivity.class); |
|
417 |
} |
|
418 |
|
|
419 | 409 |
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}); |
420 | 410 |
setListAdapter(dataAdapter); |
421 | 411 |
|
Also available in: Unified diff
Remove the Mali app (it was a silly mistake!)