diff options
author | Marcin Zelent <zelent.marcin@gmail.com> | 2018-04-20 10:50:23 +0200 |
---|---|---|
committer | Marcin Zelent <zelent.marcin@gmail.com> | 2018-04-20 10:50:23 +0200 |
commit | c4db4c26bb531974ba10c62185fd931e723a6859 (patch) | |
tree | b5d6f601c27464c69f6c99cf874ea4511aa01382 /app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java | |
parent | 4e6fc4fcdbcc3c75be13b3f8b80c24e4648fe354 (diff) |
Added displaying of pictures
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java')
-rw-r--r-- | app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java b/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java index 8373145..83e9c9a 100644 --- a/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java +++ b/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java @@ -5,6 +5,8 @@ import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; +import com.squareup.picasso.Picasso; + public class ObservationDetailsActivity extends AppCompatActivity { @Override @@ -14,8 +16,10 @@ public class ObservationDetailsActivity extends AppCompatActivity { Intent intent = getIntent(); Observation observation = (Observation) intent.getSerializableExtra("Observation"); - //String photoUrl = (String) intent.getSerializableExtra("Photo"); + String photoUrl = (String) intent.getSerializableExtra("Photo"); + SquareImageView detailsPhoto = findViewById(R.id.details_photo); + Picasso.get().load(photoUrl).into(detailsPhoto); TextView detailsName = findViewById(R.id.details_name); detailsName.setText(observation.getNameEnglish()); TextView detailsCreated = findViewById(R.id.details_created); |