How to call from public static void to not static public void in Fragment class? Or is there another way to call between (listViewHolder.dot.setOnClickListener(new View.OnClickListener() and public void search3() )
// Tab2
// public class Tab2 extends Fragment
public void search3() {
Toast.makeText( getActivity(),"search3333333: " ,Toast.LENGTH_SHORT ).show();
}
public static void search4 (Context context1,String text) {
Toast.makeText( context1,text,Toast.LENGTH_LONG ).show();
Tab2 someClass = new Tab2();
someClass.search3();
}
//CustomAdapter
//public class CustomAdapter extends BaseAdapter
listViewHolder.dot.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText( context,"" + ff.getText().toString() ,Toast.LENGTH_LONG).show();
Tab2.search4(context,"hi hhhh");
}
});