12345678910111213141516171819202122232425262728293031 |
- package com.uddream.plugin;
- import android.view.View;
- import android.widget.CompoundButton;
- import android.widget.Toast;
- /**
- * Created by Glen on 2017/2/8.
- */
- public class Agent {
- public static boolean isPluginEnable;
- public static String packageName;
- public static void onClickPre(View view) {
- Toast.makeText(view.getContext(), "agent click pre listener", Toast.LENGTH_LONG).show();
- }
- public static void onClick(View view) {
- Toast.makeText(view.getContext(), "agent click listener", Toast.LENGTH_LONG).show();
- }
- public static void onCheckedChangedPre(CompoundButton view, boolean isChecked) {
- Toast.makeText(view.getContext(), "agent check pre listener " + isChecked, Toast.LENGTH_LONG).show();
- }
- public static void onCheckedChanged(CompoundButton view, boolean isChecked) {
- Toast.makeText(view.getContext(), "agent check listener " + isChecked, Toast.LENGTH_LONG).show();
- }
- }
|