Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. ImageButton Calendar = (ImageButton) findViewById (R.id.Calendar);
  2. Calendar.setOnClickListener(new View.OnClickListener() {
  3.  
  4. @Override
  5. public void onClick(View v) {
  6. // TODO Auto-generated method stub
  7.  
  8. Intent OpenCalendarbtn = new Intent (Menu.this, DisplayCalendar.class);
  9. startActivity (OpenCalendarbtn);
  10. }
  11. });
  12.  
  13. <ImageButton
  14. android:id="@+id/Read"
  15. android:layout_width="100dp"
  16. android:layout_height="100dp"
  17. android:layout_alignParentRight="true"
  18. android:layout_alignTop="@+id/Write"
  19. android:layout_marginRight="31dp"
  20. android:src="@drawable/read" />
  21.  
  22. <ImageView
  23. android:id="@+id/AppLogo"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_alignParentTop="true"
  27. android:layout_centerHorizontal="true"
  28. android:src="@drawable/logo" />
  29.  
  30. <ImageButton
  31. android:id="@+id/Write"
  32. android:layout_width="100dp"
  33. android:layout_height="100dp"
  34. android:layout_alignParentLeft="true"
  35. android:layout_below="@+id/AppLogo"
  36. android:layout_marginLeft="35dp"
  37. android:layout_marginTop="14dp"
  38. android:src="@drawable/write" />
  39.  
  40. <ImageButton
  41. android:id="@+id/Calendar"
  42. android:layout_width="100dp"
  43. android:layout_height="100dp"
  44. android:layout_alignLeft="@+id/Write"
  45. android:layout_below="@+id/Write"
  46. android:layout_marginTop="20dp"
  47. android:src="@drawable/calendar/>
  48.  
  49. ImageButton Calendar = (ImageButton) findViewById (R.id.Calendar);
  50.  
  51. Button Calendar = (Button) findViewById (R.id.Calendar);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement