У меня есть WebView.Содержит страницу, отфильтрованную по Jsoup.
WebView cntContent;
WebView cntComments;
WebSettings webSettingsContent;
WebSettings webSettingsComments;
cntContent = findViewById(R.id.cntContent);
cntComments = findViewById(R.id.cntComments);
webSettingsContent = cntContent.getSettings();
webSettingsComments = cntComments.getSettings();
webSettingsContent.setDefaultFontSize(16);
webSettingsComments.setDefaultFontSize(16);
cntContent.setBackgroundColor(Color.TRANSPARENT);
cntComments.setBackgroundColor(Color.TRANSPARENT);
webSettingsContent.setAppCacheEnabled(true);
webSettingsComments.setAppCacheEnabled(true);
cntContent.loadDataWithBaseURL(contentUrl, contentFinal, "text/html", "utf-8", null);
cntComments.loadDataWithBaseURL(contentUrl, commentsFinal, "text/html", "utf-8", null);
cntContent.setClickable(true);
Страница содержит ссылки. Как я могу дать URL ссылки, когда пользователь щелкает ее и помещает URL в строку?