| | |
| | | import android.widget.TextView; |
| | | |
| | | import com.hanju.lib.library.util.SystemCommon; |
| | | import com.hanju.video.app.ui.SimpleBrowserActivity; |
| | | import com.hanju.video.app.util.ui.TextViewUtil; |
| | | import com.hanju.video.app.R; |
| | | import com.hanju.update.appupdate.util.StringUtils; |
| | |
| | | LayoutInflater inflater = (LayoutInflater) context |
| | | .getSystemService(Context.LAYOUT_INFLATER_SERVICE); |
| | | final UserProtocolDialog dialog = new UserProtocolDialog(context, R.style.Dialog); |
| | | dialog.setCanceledOnTouchOutside(true); |
| | | dialog.setCanceledOnTouchOutside(false); |
| | | final View layout = inflater.inflate(R.layout.dialog_user_protocol, null); |
| | | dialog.addContentView(layout, new FrameLayout.LayoutParams( |
| | | FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT)); |
| | | FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT)); |
| | | TextView tv_title = layout.findViewById(R.id.tv_title); |
| | | TextView tv_content = layout.findViewById(R.id.tv_content); |
| | | tv_content.setText(TextViewUtil.getClickableHtml(webviewData, context, Color.rgb(23,106,230))); |
| | | tv_content.setText(TextViewUtil.getClickableHtml(webviewData, context, Color.rgb(23,106,230), SimpleBrowserActivity.class)); |
| | | tv_content.setMovementMethod(LinkMovementMethod.getInstance()); |
| | | tv_content.setClickable(false); |
| | | |