Created
June 29, 2016 13:39
-
-
Save ParisaRashidi/7b61f8e4f07d3a49d5f96b8c7684e5c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { | |
((ItemViewHolder) holder).textViewTitle.setText(allBarcodeScans.get(position).getBarcodeScanDate()); | |
String barcodeImageName=allBarcodeScans.get(position).getBarcodeImageTitle(); | |
if (manageImageBarcode.readImageBarcodeFromExternalStorage(barcodeImageName)==null) | |
((ItemViewHolder) holder).imageViewBarcodeImage.setImageResource(R.mipmap.ic_launcher); | |
else | |
((ItemViewHolder) holder).imageViewBarcodeImage.setImageBitmap(manageImageBarcode.readImageBarcodeFromExternalStorage(barcodeImageName)); | |
((ItemViewHolder) holder).imageViewBarcodeImage.setOnTouchListener(this); | |
if(deleteBtnClicked) | |
adapter.remove(position); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment