Agent.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.uddream.plugin;
  2. import android.content.DialogInterface;
  3. import android.support.design.widget.TabLayout;
  4. import android.view.View;
  5. import android.widget.AdapterView;
  6. import android.widget.CompoundButton;
  7. import android.widget.Toast;
  8. /**
  9. * Created by Glen on 2017/2/8.
  10. */
  11. public class Agent {
  12. public static boolean isPluginEnable;
  13. public static String packageName;
  14. public static void onClickPre(View view) {
  15. Toast.makeText(view.getContext(), "agent click pre listener", Toast.LENGTH_LONG).show();
  16. }
  17. public static void onClick(View view) {
  18. Toast.makeText(view.getContext(), "agent click listener", Toast.LENGTH_LONG).show();
  19. }
  20. public static void onItemClickPre(AdapterView<?> parent, View view, int position, long id) {
  21. Toast.makeText(view.getContext(), "agent click listener", Toast.LENGTH_LONG).show();
  22. }
  23. public static void onItemClick(AdapterView<?> parent, View view, int position, long id) {
  24. Toast.makeText(view.getContext(), "agent click listener", Toast.LENGTH_LONG).show();
  25. }
  26. public static void onClickPre(DialogInterface dialog, int which) {
  27. }
  28. public static void onClick(DialogInterface dialog, int which) {
  29. }
  30. public static void onTabSelectedPre(TabLayout.Tab tab) {
  31. }
  32. public static void onTabSelected(TabLayout.Tab tab) {
  33. }
  34. public static void onCheckedChangedPre(CompoundButton view, boolean isChecked) {
  35. Toast.makeText(view.getContext(), "agent check pre listener " + isChecked, Toast.LENGTH_LONG).show();
  36. }
  37. public static void onCheckedChanged(CompoundButton view, boolean isChecked) {
  38. Toast.makeText(view.getContext(), "agent check listener " + isChecked, Toast.LENGTH_LONG).show();
  39. }
  40. }