android只显示一个div webview

时间:2019-03-08 19:43:15

标签: android webview android-webview

打包com.example.myapplication; 嗨,大家好,我可以在网络视图中仅显示一个div吗?我需要LogOnBoard div,其余的可以隐藏或隐藏

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        WebView webView = findViewById(R.id.webView);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.setWebViewClient(new WebViewClient());
        webView.loadUrl("https://cufs.vulcan.net.pl/lebork/Account/LogOn?ReturnUrl=%2Flebork%2FFS%2FLS%3Fwa%3Dwsignin1.0%26wtrealm%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252flebork%252fLoginEndpoint.aspx%26wctx%3Dhttps%253a%252f%252fuonetplus.vulcan.net.pl%252flebork%252fLoginEndpoint.aspx");

    }
}

0 个答案:

没有答案