title: Adding children views to a FrameLayout programmatically, then change their positions
body: <p>I'm doing an Augmented Reality app and I need to show some objects on the camera view. I'm creating a FrameLayout to which I add my camera view and then I add my AR objects (now I'm trying with TextView). In the code below the TextView I add to my FrameLayout is not shown...</p>
  
  <p>Anybody can help? And once I get <code>fs</code> shown, how can I change its position programmatically?</p>
  
  <p><b>UPDATE</b></p>
  
  <p>I tried with an ImageView instead of the TextView, and it works... Why!?</p>
  
  <pre><code>public class ARActivity extends Activity{
  
      private CBCameraView cv;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
              super.onCreate(savedInstanceState);
  
              cv = new CBCameraView(this);
  
              FrameLayout rl = new FrameLayout(this);
  
              rl.addView(cv, GlobalVars.screenWidth, GlobalVars.screenHeight); 
  
              setContentView(rl);
  
              // this works...
              /*ImageView fs = new ImageView(this);
              fs.setImageResource(R.drawable.icon);
              rl.addView(fs);*/
  
              TextView fs = new TextView(this);
              fs.setText("Bar seco");
              fs.setTextColor(android.R.color.white);
              fs.setTextSize(1,14);
              fs.setLayoutParams(new ViewGroup.LayoutParams(
                      LayoutParams.WRAP_CONTENT,
                      LayoutParams.WRAP_CONTENT));
              rl.addView(fs);
  
      }    
  }
  </code></pre>