http://・・・・・・・/pic.jpgにアクセスしてjpg画像をxmlのimageviewに
表示させる方法はありますでしょうか?
xmlは以下のような感じで用意してあります。
<ImageView android:id="@+id/ItemImage" android:layout_width="400dp" android:layout_height="400dp" android:layout_gravity="center_horizontal" android:layout_marginBottom="2dp" android:layout_marginRight="30px" android:layout_marginLeft="30px" android:background="red"/>
Javaでは
ImageView img = (ImageView) this.findViewById(R.id.ItemImage);
この後どうすればよいでしょうか?
よろしくお願いいたします。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。