title: TextView not updating
body: <p>I have a silly problem updating text in a <code>TextView</code> using a handler class. I'm setting custom Info window in Google Maps. </p>
  
  <pre><code>mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
              @Override
              public View getInfoWindow(Marker marker) {
                  return null;
              }
  
              @Override
              public View getInfoContents(final Marker marker) {
                  //setting marker as final***
                  View v = getLayoutInflater().inflate(R.layout.my_layout, null);
                  TextView name = (TextView) v.findViewById(R.id.name);
  
  
                  final TextView status = (TextView) v.findViewById(R.id.status);
  
                  for(MyItem mi : myItems){
                      if(mi.getName().equals(marker.getTitle())){
  
                          name.setText(mi.getName()); //This one updates normaly
  
                          Handler handler = new Handler();
                          handler.postDelayed(new Runnable() {
                              @Override
                              public void run() {
                                  //this one sets the text, but doesnt update on UI
                                  status.setText("Text"); 
  
                                  //Here I call my update text function
                                  updateTv(status, "Text");
                                  //Refreshing the window***
                                  marker.showInfoWindow();
  
                              }
                          }, 5000);
                          break;
                      }
                  }
  
                  return v;
              }
          });
      }
  </code></pre>
  
  <p><code>TextView</code> "name" is updating normally, while "status" <code>TextView</code> is only updating its content and not updating visually on the screen. I've tried invalidating, <code>runOnUiThread()</code>, but nothing seems to work. I know the solution might be really obvious, but I don't see it.</p>
  
  <p>Thank you for your help in advance!</p>
  
  <p>EDIT</p>
  
  <p>Here's how i tried runOnUiThread().</p>
  
  <pre><code>public void updateTv(final TextView tv, final String s){
  
          runOnUiThread(new Runnable() {
              @Override
              public void run() {
  
                  tv.setText(s);
  
                  tv.invalidate();
  
              }
          });
      }
  </code></pre>
  
  <p>My XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="vertical"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:text="Large Text"
          android:id="@+id/name"
          android:layout_gravity="center"
          android:gravity="center_horizontal"
          android:padding="10dp"/&gt;
  
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:text="..."
          android:id="@+id/status"
          android:gravity="center_horizontal"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>SOLUTION</p>
  
  <p>I refreshed my window by calling commands commented and signed with *** in the code above. My thanks goes to "clownba0t"</p>