0
我說我想包括在我的android項目資源中的N個圖像,比如說image0到imageN-1,如何設置圖像視圖以顯示其中一個drawable我只在運行時才知道?選擇Drawable以編程方式在imageview上顯示
類似的東西:
imageView.setImageDrawable(getResources().getDrawable("R.drawable.image"+i));
顯然這難道不工作,但你知道我的意思......
謝謝!