title: TextView inside FrameLayout being cut-off and not wrapping
body: <p>Ive got a <code>FrameLayout</code> which im dynamically adding <code>TextViews</code> to. Currently, the TextViews near the edge arent wrapping at the end of the parent FrameLayout and are going off screen. The FrameLayout is using <code>wrap_content</code> for both the width and height:</p>
  
  <pre><code>&lt;FrameLayout
          android:layout_margin="10dp"
          android:id="@+id/wrappingFrameLayout"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="#00ff00"
          &gt;
  </code></pre>
  
  <p>The <code>TextViews</code> are just being created, then translated to a certain spot using <code>.setTranslationX()</code> and <code>.setTranslationY()</code>.</p>
  
  <p>I've tried getting it to wrap using some answers found elsewhere on SO, such as setting LayoutParams to WRAP_CONTENT on the TextView:</p>
  
  <pre><code>newTextView.setLayoutParams(new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
  </code></pre>
  
  <p>I've also tried <code>newTextView.setSingleLine(false);</code> but that didnt work either.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT:</strong> So I noticed that none of the dynamically added views respond to any methods on them except things like color/textsize. I tried calling methods like <code>setMinLines(3)</code> and <code>.setWidth(100)</code> and they had no effect. </p>