Created
August 6, 2015 10:56
-
-
Save SelvinPL/9b514a4842f547ddefb2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| SimpleAdapter adapter = ...; | |
| adapter.setViewBinder(new SimpleAdapter.ViewBinder() { | |
| @Override | |
| public boolean setViewValue(View view, Object data, String textRepresentation) { | |
| if(view.getId() == R.id.imageView1) { //view is our ImageView | |
| ((ImageView)view).setImageBitmap((Bitmap)data); | |
| return true; | |
| } | |
| //Otherwise do default stuff | |
| return false; | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment