| | |
| | | import android.widget.TextView; |
| | | |
| | | import com.lcjian.library.util.SystemCommon; |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.weikou.beibeivideo.ui.mine.SimpleBrowserActivity; |
| | | import com.weikou.beibeivideo.util.ui.TextViewUtil; |
| | | import com.yeshi.buwanshequ.R; |
| | | import com.ysh.wpc.appupdate.util.StringUtils; |
| | | import com.weikou.beibeivideo.R; |
| | | |
| | | /** |
| | | * 用户协议弹框 |
| | |
| | | LayoutInflater inflater = (LayoutInflater) context |
| | | .getSystemService(Context.LAYOUT_INFLATER_SERVICE); |
| | | final UserProtocolDialog dialog = new UserProtocolDialog(context, R.style.Dialog); |
| | | 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); |
| | | |