Revision 5b4a2d76
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/examples/TableOfContents.java | ||
---|---|---|
69 | 69 |
import org.distorted.examples.glow.GlowActivity; |
70 | 70 |
import org.distorted.examples.movingglow.MovingGlowActivity; |
71 | 71 |
import org.distorted.examples.earth.EarthActivity; |
72 |
import org.distorted.examples.rubik.RubikActivity; |
|
72 | 73 |
|
73 | 74 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
74 | 75 |
|
... | ... | |
406 | 407 |
activityMapping.put(i++, EarthActivity.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_rubik)); |
|
414 |
item.put(ITEM_SUBTITLE, getText(R.string.example_rubik_subtitle)); |
|
415 |
data.add(item); |
|
416 |
activityMapping.put(i++, RubikActivity.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 |
|
Also available in: Unified diff
1) new 'Rubik' app (skeleton)
2) MeshCubes: add support for custom texture mappings on each side (Rubik needs that!)