我想将此页面中的一些图像动态添加到我表中的行中。
到目前为止,这是我的代码:
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));
现在...例如,我怎样才能使带有太阳镜的男人的图像成为我的桌子行的一部分?
PS:我希望我的应用程序每天都获取图像,而无需更改代码。该网站每天更新,改变新闻和图像。