Revision 64558e4e
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/TableOfContents.java | ||
---|---|---|
51 | 51 |
import org.distorted.examples.bean.BeanActivity; |
52 | 52 |
import org.distorted.examples.objecttree.ObjectTreeActivity; |
53 | 53 |
import org.distorted.examples.starwars.StarWarsActivity; |
54 |
import org.distorted.examples.cubes.CubesActivity;
|
|
54 |
import org.distorted.examples.inflate.InflateActivity;
|
|
55 | 55 |
import org.distorted.examples.quaternion.QuaternionActivity; |
56 | 56 |
import org.distorted.examples.effects3d.Effects3DActivity; |
57 | 57 |
import org.distorted.examples.plainmonalisa.PlainMonaLisaActivity; |
... | ... | |
68 | 68 |
import org.distorted.examples.stencil.StencilActivity; |
69 | 69 |
import org.distorted.examples.glow.GlowActivity; |
70 | 70 |
import org.distorted.examples.movingglow.MovingGlowActivity; |
71 |
import org.distorted.examples.inflate.InflateActivity;
|
|
71 |
import org.distorted.examples.earth.EarthActivity;
|
|
72 | 72 |
|
73 | 73 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
74 | 74 |
|
... | ... | |
256 | 256 |
{ |
257 | 257 |
final Map<String, Object> item = new HashMap<>(); |
258 | 258 |
item.put(ITEM_IMAGE, R.drawable.icon_example_cubes); |
259 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_cubes));
|
|
260 |
item.put(ITEM_SUBTITLE, getText(R.string.example_cubes_subtitle));
|
|
259 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_inflate));
|
|
260 |
item.put(ITEM_SUBTITLE, getText(R.string.example_inflate_subtitle));
|
|
261 | 261 |
data.add(item); |
262 |
activityMapping.put(i++, CubesActivity.class);
|
|
262 |
activityMapping.put(i++, InflateActivity.class);
|
|
263 | 263 |
} |
264 | 264 |
|
265 | 265 |
{ |
... | ... | |
400 | 400 |
{ |
401 | 401 |
final Map<String, Object> item = new HashMap<>(); |
402 | 402 |
item.put(ITEM_IMAGE, R.drawable.icon_example_wip); |
403 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_inflate));
|
|
404 |
item.put(ITEM_SUBTITLE, getText(R.string.example_inflate_subtitle));
|
|
403 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_earth));
|
|
404 |
item.put(ITEM_SUBTITLE, getText(R.string.example_earth_subtitle));
|
|
405 | 405 |
data.add(item); |
406 |
activityMapping.put(i++, InflateActivity.class);
|
|
406 |
activityMapping.put(i++, EarthActivity.class);
|
|
407 | 407 |
} |
408 | 408 |
|
409 | 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}); |
Also available in: Unified diff
Rename the old 'Cubes' app to 'Inflate' - this now combines the testing functionality of former 'Cubes' and 'Inflate' apps.
The old 'Inflate' in turn renamed to 'Earth' - here we are going to show an Earth rotating in space.