2016-09-16 15 views

答えて

1

RecyclerViewアダプタの基本的な機能のために:あなたのonBindViewHolderhttp://guides.codepath.com/android/Using-the-RecyclerView

、あなたはこのようなあなたの画像を取得することができます:

String path = Environment.getExternalStorageDirectory() + "/myImage.jpg"; 
Bitmap bitmap = BitmapFactory.decodeFile(path); 

more info on getting images from external storage

とImageViewのか何かでそれを使用します類似。

+1

はありがとう..私は使用ビットマップでアダプタを書いた作品 – Huseyin

1

それはだ

@Override 
public void onBindViewHolder(RecyclerViewHolders holder, int position) { 
    holder.countryName.setText("Img"); 
    Bitmap bitmap = BitmapFactory.decodeFile(newList.get(position)); 
    holder.countryPhoto.setImageBitmap(bitmap); 
} 
関連する問題