|
@@ -3,6 +3,7 @@ package com.sylvrec.incallsms.UI;
|
|
|
import android.content.Context;
|
|
import android.content.Context;
|
|
|
import android.content.res.TypedArray;
|
|
import android.content.res.TypedArray;
|
|
|
import android.util.AttributeSet;
|
|
import android.util.AttributeSet;
|
|
|
|
|
+import android.view.View;
|
|
|
import android.webkit.WebView;
|
|
import android.webkit.WebView;
|
|
|
|
|
|
|
|
import com.sylvrec.incallsms.R;
|
|
import com.sylvrec.incallsms.R;
|
|
@@ -37,6 +38,13 @@ public class TextViewPlus extends WebView {
|
|
|
try {
|
|
try {
|
|
|
TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.TextViewPlus);
|
|
TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.TextViewPlus);
|
|
|
_html = typedArray.getString(R.styleable.TextViewPlus_TextHtml);
|
|
_html = typedArray.getString(R.styleable.TextViewPlus_TextHtml);
|
|
|
|
|
+ this.setOnLongClickListener(new OnLongClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public boolean onLongClick(View v) {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ setLongClickable(false);
|
|
|
typedArray.recycle();
|
|
typedArray.recycle();
|
|
|
loadData(_html, "text/html", null);
|
|
loadData(_html, "text/html", null);
|
|
|
} catch (Exception e) {}
|
|
} catch (Exception e) {}
|