34 |
34 |
import android.widget.AdapterView.OnItemClickListener;
|
35 |
35 |
import android.widget.SimpleAdapter;
|
36 |
36 |
|
37 |
|
import org.distorted.examples.aroundtheworld.AroundTheWorldActivity;
|
38 |
37 |
import org.distorted.examples.monalisa.MonaLisaActivity;
|
39 |
38 |
import org.distorted.examples.sink.SinkActivity;
|
40 |
39 |
import org.distorted.examples.projection.ProjectionActivity;
|
... | ... | |
60 |
59 |
import org.distorted.examples.save.SaveActivity;
|
61 |
60 |
import org.distorted.examples.flag.FlagActivity;
|
62 |
61 |
import org.distorted.examples.wind.WindActivity;
|
|
62 |
import org.distorted.examples.aroundtheworld.AroundTheWorldActivity;
|
63 |
63 |
import org.distorted.examples.mirror.MirrorActivity;
|
64 |
64 |
import org.distorted.examples.blur.BlurActivity;
|
65 |
65 |
import org.distorted.examples.multiblur.MultiblurActivity;
|
... | ... | |
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;
|
72 |
73 |
|
73 |
74 |
///////////////////////////////////////////////////////////////////////////////////////////////////
|
74 |
75 |
|
... | ... | |
390 |
391 |
|
391 |
392 |
{
|
392 |
393 |
final Map<String, Object> item = new HashMap<>();
|
393 |
|
item.put(ITEM_IMAGE, R.drawable.icon_example_glow);
|
|
394 |
item.put(ITEM_IMAGE, R.drawable.icon_example_wip);
|
394 |
395 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_glow));
|
395 |
396 |
item.put(ITEM_SUBTITLE, getText(R.string.example_glow_subtitle));
|
396 |
397 |
data.add(item);
|
... | ... | |
399 |
400 |
|
400 |
401 |
{
|
401 |
402 |
final Map<String, Object> item = new HashMap<>();
|
402 |
|
item.put(ITEM_IMAGE, R.drawable.icon_example_movingglow);
|
|
403 |
item.put(ITEM_IMAGE, R.drawable.icon_example_wip);
|
403 |
404 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_moving_glow));
|
404 |
405 |
item.put(ITEM_SUBTITLE, getText(R.string.example_moving_glow_subtitle));
|
405 |
406 |
data.add(item);
|
406 |
407 |
activityMapping.put(i++, MovingGlowActivity.class);
|
407 |
408 |
}
|
408 |
409 |
|
|
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 |
|
409 |
419 |
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});
|
410 |
420 |
setListAdapter(dataAdapter);
|
411 |
421 |
|
Actually display the new Mali app.