我正在尝试使用自定义imageview更改滚动视图的图像,但我不知道如何设置imageview以显示网址
public class NewsDetails extends AppCompatActivity {
CoordinatorLayout coordinatorLayout;
TextView textView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_news_details);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
coordinatorLayout= (CoordinatorLayout) findViewById(R.id.newsscroll);
Bundle extra = getIntent().getExtras();
TextView tv = (TextView)findViewById(R.id.contenttext);
tv.setText(extra.getString("Message"));
ImageView im = (ImageView) findViewById(R.id.thumb_img2);
im.set
}
`