Project

General

Profile

« Previous | Next » 

Revision 08602667

Added by Leszek Koltunski almost 7 years ago

Beginnings of the GLOW unit test.

View differences:

src/main/java/org/distorted/examples/TableOfContents.java
64 64
import org.distorted.examples.blur.BlurActivity;
65 65
import org.distorted.examples.multiblur.MultiblurActivity;
66 66
import org.distorted.examples.stencil.StencilActivity;
67
import org.distorted.examples.glow.GlowActivity;
67 68

  
68 69
///////////////////////////////////////////////////////////////////////////////////////////////////
69 70

  
......
356 357
      activityMapping.put(i++, StencilActivity.class);
357 358
   }
358 359

  
360
  {
361
      final Map<String, Object> item = new HashMap<>();
362
      item.put(ITEM_IMAGE, R.drawable.icon_example_glow);
363
      item.put(ITEM_TITLE, (i+1)+". "+getText(R.string.example_glow));
364
      item.put(ITEM_SUBTITLE, getText(R.string.example_glow_subtitle));
365
      data.add(item);
366
      activityMapping.put(i++, GlowActivity.class);
367
   }
368

  
359 369
   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});
360 370
   setListAdapter(dataAdapter);  
361 371
      

Also available in: Unified diff