Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. final GridView gridView1 = (GridView)findViewById(R.id.gridView1);
  2.  
  3. ArrayList<String> listCountry1 = new ArrayList<String>();
  4. listCountry1.add("China");
  5. listCountry1.add("Japan");
  6. listCountry1.add("Malaysia");
  7. listCountry1.add("India");
  8. listCountry1.add("Pakistan");
  9. listCountry1.add("Indonesia");
  10. listCountry1.add("Thailand");
  11. listCountry1.add("Korea repoblic");
  12. listCountry1.add("Nepal");
  13.  
  14. Integer[] flags = new Integer[]{R.drawable.w1, R.drawable.w12, R.drawable.w15,
  15. R.drawable.w26, R.drawable.w28, R.drawable.w33,
  16. R.drawable.w44, R.drawable.w46, R.drawable.w50};
  17.  
  18. mAdapter1 = new GridviewAdapter(FirstSixMonthPageActivity.this, listCountry1, flags);
  19. gridView1.setAdapter(mAdapter1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement