Commit d37cfea8 by sikang

webview js enable

parent a50fa209
...@@ -6,6 +6,7 @@ import android.support.v4.app.FragmentActivity; ...@@ -6,6 +6,7 @@ import android.support.v4.app.FragmentActivity;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.Gravity; import android.view.Gravity;
import android.view.View; import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView; import android.webkit.WebView;
import android.widget.CheckBox; import android.widget.CheckBox;
...@@ -76,6 +77,12 @@ public class AgreementPolicyActivity extends BaseActivity { ...@@ -76,6 +77,12 @@ public class AgreementPolicyActivity extends BaseActivity {
EventBus.getDefault().register(this); EventBus.getDefault().register(this);
mCheckBox = findViewById(R.id.activity_policy_checkbox); mCheckBox = findViewById(R.id.activity_policy_checkbox);
webView = findViewById(R.id.activity_policy_webview); webView = findViewById(R.id.activity_policy_webview);
WebSettings settings = webView .getSettings();
settings.setJavaScriptEnabled(true);
settings.setUseWideViewPort(true);
settings.setSupportZoom(true);
settings.setLoadWithOverviewMode(true);
UIHelper.bindClickListener(getContentView(), new OnEventClickListener() { UIHelper.bindClickListener(getContentView(), new OnEventClickListener() {
@Override @Override
public void onEventClick(View v) { public void onEventClick(View v) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment