android - Need to add parse username to infowindow -


is possible add username textview inside google maps infowindow?

in following code able title, description , image parse, want add current user textview have not been able to. looking bit of guidance since there arent many posts in regards ( or perhaps need go deep web) code reference

@override     public void onmapready(final googlemap googlemap) {         googlemap.setmylocationenabled(true);         this.googlemap = googlemap;         googlemap.setinfowindowadapter(new googlemap.infowindowadapter() {              // use default infowindow frame             @override             public view getinfowindow(marker arg0) {                 return null;             }              // defines contents of infowindow             @override             public view getinfocontents(marker marker) {                  // getting view layout file info_window_layout                 view v = getactivity().getlayoutinflater().inflate(r.layout.maps_infowindow, null);                 v.setlayoutparams(new linearlayout.layoutparams((int) (mapfragment.getview().getmeasuredwidth() * .9), linearlayout.layoutparams.wrap_content));                  ((textview) v.findviewbyid(r.id.title)).settext(marker.gettitle());                 ((textview) v.findviewbyid(r.id.desc)).settext(marker.getsnippet());                 ((textview) v.findviewbyid(r.id.user)).settext((charsequence) parseuser.getcurrentuser()); // problem here                    item item = mmarker2item.get(marker);                 if(item.iconbitmap==null){                     //this blocking call, run until download complete                     item.downloadicon(getactivity());                 }                  imageview icon = (imageview) v.findviewbyid(r.id.imageview5);                 icon.getlayoutparams().height = 800; // or                 icon.getlayoutparams().width = 800;                  if(item.iconbitmap!=null){                     icon.setimagebitmap(item.iconbitmap);                 }else{                 }                  return v;              }          }); 

ahhh ok easy stuff. had user string parse , set textview follows:

 string user = parseuser.getcurrentuser().getstring("username");                 ((textview) v.findviewbyid(r.id.user)).settext(user); 

Comments