Agent.java 879 B

1234567891011121314151617181920212223242526272829
  1. package com.uddream.plugin;
  2. import android.view.View;
  3. import android.widget.CompoundButton;
  4. import android.widget.Toast;
  5. /**
  6. * Created by Glen on 2017/2/8.
  7. */
  8. public class Agent {
  9. public static void onClickPre(View view) {
  10. Toast.makeText(view.getContext(), "agent click pre listener", Toast.LENGTH_LONG).show();
  11. }
  12. public static void onClick(View view) {
  13. Toast.makeText(view.getContext(), "agent click listener", Toast.LENGTH_LONG).show();
  14. }
  15. public static void onCheckedChangedPre(CompoundButton view, boolean isChecked) {
  16. Toast.makeText(view.getContext(), "agent check pre listener " + isChecked, Toast.LENGTH_LONG).show();
  17. }
  18. public static void onCheckedChanged(CompoundButton view, boolean isChecked) {
  19. Toast.makeText(view.getContext(), "agent check listener " + isChecked, Toast.LENGTH_LONG).show();
  20. }
  21. }