Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (i = 0; i < 16; i++) {
- int resID = getResources().getIdentifier("layout"+i, "id", getPackageName());
- temp1 = (LinearLayout) findViewById(resID);
- temp1.setOnClickListener(new View.OnClickListener(){public void onClick(View v)
- {
- int num = checkBools();
- int chck = i;
- if(num!=-1)
- {
- switcheroo(chck,num);
- bools = new boolean[bools.length];
- }
- if(mypokes[chck+6]!=null)
- {
- bools[chck+6] = !bools[chck+6];
- }
- Log.i("CHECK",Integer.toString(chck+6));
- updateXML();
- }});
- }
Add Comment
Please, Sign In to add comment