我希望我的web視圖來顯示網頁完全禁止網頁視圖,但不與網頁的任何交互的。 只需顯示它。我顯示一個iframe,但是當你點擊圖像時,它會進入一個鏈接。該鏈接對於框架來說很重要。我需要禁用能夠點擊它。反正有沒有在Android的
我曾嘗試
WebView
android:id="@+id/wv_AmberAlert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:longClickable ="false"
和
wv_Amber_Alert.setFocusableInTouchMode(false);
wv_Amber_Alert.setFocusable(false);
wv_Amber_Alert.setOnTouchListener(null);
wv_Amber_Alert.setOnClickListener(null);
你嘗過Webview.setJavaScriptEnabled(假)禁用JavaScript和一些像這樣的其他方法。 – QAMAR
嘗試和沒有。但無論如何謝謝 – Rick