我加載網頁視圖Web視圖不加載HTML內容
String Check = "<html><body><form action=\"https://sandbox.google.com/checkout/api/checkout/v2/checkoutForm/Merchant/**ID**\" id=\"BB_BuyButtonForm\" method=\"" +
"post\" name=\"" +"BB_BuyButtonForm\" target=\"_top\">"
+"<input name=\"item_name_1\" type=\"hidden\" value=\"Carbon Emission\"/>"
+"<input name=\"item_description_1\" type=\"hidden\" value=\"Pay for carbon emission. \"/>"
+"<input name=\"item_quantity_1\" type=\"hidden\" value=\"1\"/>"
+"<input name=\"item_price_1\" type=\"hidden\" value=\"ffff\"/>"
+"<input name=\"item_currency_1\" type=\"hidden\" value=\"USD\"/>"
+"<input name=\"_charset_\" type=\"hidden\" value=\"utf-8\"/>"
+"<input alt=\"\" src=\"https://sandbox.google.com/checkout/buttons/buy.gif?merchant_id=**ID**&&w=117&&h=48&&style=trans&&variant=text&&loc=en_US\" type=\"Button\"/>"
+"</form></body></html>";
內檢查字符串然後我加載檢查字符串的WebView
webview.loadData(Check, "text/html", "UTF_8");
它顯示白色畫面
+1分享 – Praveenkumar