2013-10-29 2 views
0

메신저에 css html이 포함되어있는이 json을 얻으려면 이미지와 텍스트가 모두 포함될 것입니다. 내가 웹 사이트를위한 안드로이드 앱을 만드는 것을 도와주세요. 그래서 내가 무엇을 할 것인가?UI에서 html fromjson을 표시하는 방법

{"Status":1, 
"data": 
[ 
{"product_id":"8569", 


"image":"data\/osc\/0\/10011-Scalp-Med-Hsdf.jpg", 
"manufacturer_id":"0", 

"name":"Scalp Med Hair Grow PC-0004..", 

    "description":"<p><b><font face="Arial">Scalp Med Hair Grow PC-0004.. <\/font><\/b><\/p>  
    \r\n\r 
    \n<p><img border="0" height="257" 
src="http:\/\/www.megamall.com.pk\/image\/cache\/data\/10011-Scalp-Med-Hairfall-Solution- 
800x800.jpg" width="261" \/><\/p>\r\n\r\n<p><b><font face="Arial" size="2"> 
Features: <\/font><\/b><\/p>\r\n\r\n<p><font face="Arial" size="2"><b>Scalp Med Hair 
Grow<\/b> is an all natural formulation which includes the pure extracts of plants from 
3 different continents.<br \/>\r\n<br \/>\r\nIs your Bald Spot getting bigger and bigger 
every month?<br \/>\r\nIs the hair on your shower floor getting thicker while it gets 
thinner and thinner on your head?<br \/>\r\n<br \/>\r\nThen Scalp Med Hair Grow 
is for you. Scalp Med Hair Grow is an all natural formulation which includes the 
pure extracts of plants from 3 different continents. This tried and tested formulation 
will reach deep down to cleanse, revitalize and unblock the hair follicles allowing vital 
nutrients to reach the hair roots and allow hair to grow again.<br \/>\r\n<br \/>\r\nScalp 
Med Hair Grow is the only ecological product of its kind capable of treating alopecia 
efficiently. In the first month, continual use of Scalp Med Hair Grow will recover 
    and strengthen the hair follicles. In the second month, your hair will stop 
falling out altogether. And by the third month, new hair will start to grow. 
<\/font><\/p>\r\n", 
    "meta_description":"Scalp Med Hair Grow PC-0004.. Rs. 1199.0000\/- Buy Scalp 
    Med Hair Grow PC-0004.. Lifestyle > Fragrances & Beauty in Pakistan","meta_keyword": 
"Tablet PC, Laptops, Mobile Phones, Watches, China Mobiles, Refurbished Mobiles, 
Head Phones, Nokia Lumia, Nokia Asha, Samsung Galaxy, Computers, Home Appliances, 
Printer, Scanners, ipods, ipads, blackberry, htc, iphone, apple, nokia, sony, camera,  
samsun","product_h1":"", 

"image_path":"http:\/\/www.syyy.pk\/image\/data\/osc\/0\/10011-Scalp-Med-Hsdf.jpg"} 

]} 

답변

0

먼저 당신은 다음이 도움이 WebView

WebView webView = (WebView) notificationDialog.findViewById(R.id.yourWebView); 
webView.loadData("yourhtmlstring", "text/html", "utf8"); 

희망에로드하기 위해이 같은 것을 사용할 수 있습니다

JSON을 구문 분석하고 객체의 HTML 매개 변수를 얻을 수있을 것이다

+0

나는 그것을했다 \t String description = school2.getJSONObject (0) .getString ("description"); – user2914381

+0

브라우저에 가고 싶지 않습니다. 응용 프로그램 UI html 테스트 및 설명 부분의 이미지에 표시하고 싶습니다. – user2914381

+0

HTML을 표시 할 수는 있지만 이미지를 표시 할 수는 없습니까? 또는 WebView를 전혀 사용하지 않으시겠습니까? – Neil

관련 문제