Guest User

Untitled

a guest
May 27th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. for (i = 0; i < 16; i++) {
  2. int resID = getResources().getIdentifier("layout"+i, "id", getPackageName());
  3. temp1 = (LinearLayout) findViewById(resID);
  4. temp1.setOnClickListener(new View.OnClickListener(){public void onClick(View v)
  5. {
  6. int num = checkBools();
  7. int chck = i;
  8. if(num!=-1)
  9. {
  10. switcheroo(chck,num);
  11. bools = new boolean[bools.length];
  12. }
  13. if(mypokes[chck+6]!=null)
  14. {
  15. bools[chck+6] = !bools[chck+6];
  16. }
  17. Log.i("CHECK",Integer.toString(chck+6));
  18. updateXML();
  19. }});
  20. }
Add Comment
Please, Sign In to add comment