我想動態地將this page中的一些圖片添加到我表格中的行中。表格行中的Android圖片網址
這是我到目前爲止的代碼:
TableLayout tableView = (TableLayout) findViewById(R.id.tableView);
TableRow row = new TableRow(this);
ImageView im;
im = new ImageView(this);
im.setImageResource(R.drawable.rss);
row.addView(im, new TableRow.LayoutParams(50, 50));
tableView.addView(row, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
現在...我怎樣才能使,例如,與the man with sunglasses的形象,是我的錶行的一部分嗎? PS:我希望我的應用程序每天獲取圖像,而不需要更改代碼。該網站更新一天,改變新聞和圖像。
我沒有API。我想要顯示[像這樣]表格行(http://oi55.tinypic.com/2rfxxs4.jpg),並且不從我的電腦或設備拍攝圖像,而是從網站上獲取圖像。這[URL](http://golfnews.no/content/images/a2010_thumb.jpg) – Teo
您是解析網頁還是如何獲取新聞本身? –