Project

General

Profile

« Previous | Next » 

Revision 4f39a7d1

Added by Leszek Koltunski almost 6 years ago

Actually display the new Mali app.

View differences:

src/main/AndroidManifest.xml
50 50
        <activity android:name=".stencil.StencilActivity"/>
51 51
        <activity android:name=".glow.GlowActivity"/>
52 52
        <activity android:name=".movingglow.MovingGlowActivity"/>
53
        <activity android:name=".mali.MaliActivity"/>
53 54
    </application>
54 55
</manifest>
src/main/java/org/distorted/examples/TableOfContents.java
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
      
src/main/res/values/strings.xml
167 167
    <string name="example_glow_subtitle">Leaf glowing with light.</string>
168 168
    <string name="example_moving_glow">Glow Effect</string>
169 169
    <string name="example_moving_glow_subtitle">See moving objects glowing with light.</string>
170
    <string name="example_mali">Debug Mali GPU</string>
171
    <string name="example_mali_subtitle">Self-contained app to try and debug issues on Mali GPU</string>
170 172

  
171 173
    <string name="example_movingeffects_toast">Click on \'RESET\' and define your path by touching the screen. Then click on one of the effects and see it move along your path.</string>
172 174
    <string name="example_rotate_toast">Rotate the scene by swiping the screen</string>

Also available in: Unified diff