//package xn.hxp.weidith; // //import android.annotation.SuppressLint; //import android.content.Context; //import android.util.AttributeSet; //import android.view.View; //import android.widget.TextView; // //import androidx.annotation.Nullable; // //import com.blankj.utilcode.util.ClickUtils; //import com.lxj.xpopup.XPopup; // //@SuppressLint("AppCompatCustomView") //public class MyTextView extends TextView { // public MyTextView(Context context, @Nullable AttributeSet attrs) { // super(context, attrs); // } // // public MyTextView(Context context) { // super(context); // setOnClickListener(new ClickUtils.OnDebouncingClickListener() { // @Override // public void onDebouncingClick(View v) { // new XPopup.Builder(getContext()) // .hasShadowBg(false) // .isTouchThrough(true) // .isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个 // .atView(v) // .isCenterHorizontal(true) // .hasShadowBg(false) // 去掉半透明背景 // .asCustom(new CustomBubbleAttachPopup(context, getText().toString())) // .show(); // } // }); // } // // // //}