java - Loading image from google places url to imageview (Android) -


i'm trying load image url provided google place's json response , putting in imageview layout that's going show when marker clicked. no error in run-time or in debug image not display on imageview. there may cause this?

my layout:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/places" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:orientation="horizontal" android:background="@drawable/mapinfoborder">  <imageview     android:id="@+id/place_badge"     android:layout_width="100dp"     android:layout_height="100dp"     android:layout_centerhorizontal="true"     android:layout_margintop="20dp"     android:adjustviewbounds="true" />  <textview     android:id="@+id/place_title"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_centerhorizontal="true"     android:textcolor="#ffffffff"     android:layout_below="@+id/place_badge"     android:paddingtop="5dp"     android:textsize="20dp"     android:gravity="center"     android:text="titleplaceholder"/>  <textview     android:id="@+id/place_snippet"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_below="@+id/place_title"     android:paddingtop="5dp"     android:textcolor="#ffffffff"     android:textsize="16dp"     android:gravity="center"     android:text="snippetplaceholder"/>      </relativelayout> 

calling in activity:

    view v = inflater.inflate(r.layout.places_layout, null);     placeimage = (imageview) v.findviewbyid(r.id.place_badge);     ...     picasso.with(getapplicationcontext())                         .load(markerplaces.get(marker.getid())).placeholder(r.drawable.bus)                         .into(placeimage); 

again no error there's no usable logcat can provide. comments/ideas/suggestions appreciated.

can try this

view v = inflater.inflate(r.layout.places_layout, null); placeimage = (imageview) v.findviewbyid(r.id.place_badge); ... picasso picasso = picasso.with(getapplicationcontext()); picasso.invalidate(market.getid()); picasso.load(markerplaces.get(marker.getid()))     .placeholder(r.drawable.bus)     .into(placeimage); 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -