title: How to get margins of a TextView?
body: <p>I'm trying to get top and left margins of a textview which I gave hardcoded margins. </p>
  
  <p>Why I'm doing this? Because I wanna loop through all the textviews I placed BELOW this textview so I can programmaticaly add radiobutton groups at these exact margins.</p>
  
  <pre><code>textView[0] = new TextView(context);
  relativeLayoutParams = new RelativeLayout.LayoutParams(
  RelativeLayout.LayoutParams.WRAP_CONTENT,
  RelativeLayout.LayoutParams.WRAP_CONTENT);
  textView[0].setId(1); // changed id from 0 to 1
  textView[0].setText(naam[0].toUpperCase());
  relativeLayoutParams.setMargins(24, 39, 0, 0);
  int tyo = relativeLayoutParams.getTop(); //Trying to get top margins.
  </code></pre>