title: Get weight in android
body: <p>I am new Android development, and I have a question about get width of View in Android.
  I set weight of view = 1</p>
  
  <pre><code>&lt;TextView
          android:id="@+id/tvSTT"
          android:layout_width="0dp"
          android:layout_weight="1dp"
          android:layout_height="match_parent"/&gt;
  </code></pre>
  
  <p>And I try to find way to get width of this in java code. How should I do?
  Sorry about my English.</p>