3
ここでは奇妙なリクエストがありますが、元のイメージビューから取得することによって別のイメージビューと同じ描画可能なイメージビューを設定する方法はありますか?私は何を意味することは次のとおりです。別のImageViewからImageViewのsetImageResource
ImageView image1 = new ImageView(this);
image1.setimageResource(R.drawable.blah1);
ImageView image2 = new ImageView(this);
//now i want something like this, which doesn't work. i want to get it from image1
image2.setImageResource(image1.getDrawable());
ので、どのように私はイメージ1からこれを達成することができますしてください..ありがとう:)
うーん...それは働いたおかげ!?私はそれを試みたと思っていた。私のコードでそれをチェックします。もう一度ありがとう – irobotxxx