Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ImageView textShip= (ImageView) findViewById(R.id.text_ship);
  2.  
  3. Picasso.with(this)
  4. .load(R.drawable.text_ship)
  5. .resize((int)shipWidth,(int)shipHeight)
  6. .into(textShip);
  7.  
  8. ImageView textShip= (ImageView) findViewById(R.id.text_ship);
  9.  
  10. Picasso.with(this)
  11. //different bitmap loaded into same ImageView
  12. .load(R.drawable.yellow_text_ship)
  13. .resize((int)shipWidth,(int)shipHeight)
  14. .into(textShip);
  15.  
  16. ImageView textShip= (ImageView) findViewById(R.id.text_ship);
  17.  
  18. Picasso.with(this)
  19. .load(R.drawable.text_ship)
  20. .resize((int)shipWidth,(int)shipHeight)
  21. .into(textShip);
  22. //so the image is not show before I want it to be shown
  23. //note also even when this isn't here the problem persists
  24. textShip.setImageBitmap(null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement