Revision 76a81b6a
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/TableOfContents.java | ||
---|---|---|
54 | 54 |
import org.distorted.examples.cubes.CubesActivity; |
55 | 55 |
import org.distorted.examples.quaternion.QuaternionActivity; |
56 | 56 |
import org.distorted.examples.matrix3d.Matrix3DActivity; |
57 |
import org.distorted.examples.vertex3d.Vertex3DActivity; |
|
58 |
import org.distorted.examples.fragment3d.Fragment3DActivity; |
|
57 |
import org.distorted.examples.effects3d.Effects3DActivity; |
|
59 | 58 |
import org.distorted.examples.plainmonalisa.PlainMonaLisaActivity; |
60 | 59 |
import org.distorted.examples.save.SaveActivity; |
61 | 60 |
|
... | ... | |
262 | 261 |
|
263 | 262 |
{ |
264 | 263 |
final Map<String, Object> item = new HashMap<>(); |
265 |
item.put(ITEM_IMAGE, R.drawable.icon_example_vertex3d);
|
|
266 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_vertex3d));
|
|
267 |
item.put(ITEM_SUBTITLE, getText(R.string.example_vertex3d_subtitle));
|
|
264 |
item.put(ITEM_IMAGE, R.drawable.icon_example_effects3d);
|
|
265 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_effects3d));
|
|
266 |
item.put(ITEM_SUBTITLE, getText(R.string.example_effects3d_subtitle));
|
|
268 | 267 |
data.add(item); |
269 |
activityMapping.put(i++, Vertex3DActivity.class); |
|
270 |
} |
|
271 |
|
|
272 |
{ |
|
273 |
final Map<String, Object> item = new HashMap<>(); |
|
274 |
item.put(ITEM_IMAGE, R.drawable.icon_example_fragment3d); |
|
275 |
item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_fragment3d)); |
|
276 |
item.put(ITEM_SUBTITLE, getText(R.string.example_fragment3d_subtitle)); |
|
277 |
data.add(item); |
|
278 |
activityMapping.put(i++, Fragment3DActivity.class); |
|
268 |
activityMapping.put(i++, Effects3DActivity.class); |
|
279 | 269 |
} |
280 | 270 |
|
281 | 271 |
{ |
Also available in: Unified diff
Combine Fragment3D and Vertex3D apps into one.