Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final GridView gridView1 = (GridView)findViewById(R.id.gridView1);
- ArrayList<String> listCountry1 = new ArrayList<String>();
- listCountry1.add("China");
- listCountry1.add("Japan");
- listCountry1.add("Malaysia");
- listCountry1.add("India");
- listCountry1.add("Pakistan");
- listCountry1.add("Indonesia");
- listCountry1.add("Thailand");
- listCountry1.add("Korea repoblic");
- listCountry1.add("Nepal");
- Integer[] flags = new Integer[]{R.drawable.w1, R.drawable.w12, R.drawable.w15,
- R.drawable.w26, R.drawable.w28, R.drawable.w33,
- R.drawable.w44, R.drawable.w46, R.drawable.w50};
- mAdapter1 = new GridviewAdapter(FirstSixMonthPageActivity.this, listCountry1, flags);
- gridView1.setAdapter(mAdapter1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement