title: How to detect width of TextView that has attribute wrap_content?
body: <p>I have a layout with element TextView</p>
  
  <pre><code>&lt;TextView android:textColor="#ffffff" android:text="18 августа"
                      android:id="@+id/program_day1" android:layout_gravity="center"
                      android:textSize="18sp" android:textStyle="bold"
                      android:layout_height="wrap_content" android:layout_width="wrap_content"
                      android:layout_weight="1" android:gravity="center" /&gt;
  </code></pre>
  
  <p>How can I detect the real size (and margins) of this in the onStart (or other) event? Now it shows "-2" values </p>