Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.66 KB  |  hits: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. android swipe Horizontal View Paging with MapView
  2. switch (position) {
  3.             case 0:
  4.                 resId = R.layout.record1;
  5.                 break;
  6.             case 1:
  7.                 resId = R.layout.record2;
  8.                 break;
  9.             case 2:
  10.                 resId = R.layout.record3;                  
  11.                 break;  
  12.             }
  13.        
  14. switch (position) {
  15.             case 0:
  16.                 resId = R.layout.record1;
  17.                 break;
  18.             case 1:
  19.                 resId = R.layout.record3;
  20.                 break;
  21.             case 2:
  22.                 resId = R.layout.record2;                  
  23.                 break;  
  24.             }