 <p>I dont understand you question.</p> <p>You say you want to add a <code>TextureView</code> to your activity_main.xml layout. but it is already there.</p> <p>Obviously if you use <code>setContentView(mTextureView);</code> after <code>setContentView(R.layout.activity_main);</code> the entire layout will be gone. You are setting the activity content to a single view instead of the entire layout.</p> <p>You are also creating a new <code>TextureView</code> and not using the one on the activity_main layout.</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mTextureView = (TextureView)findViewById(R.id.textureView1); mTextureView.setSurfaceTextureListener(this); } </code></pre> <p>I think you should be doing something like this. I never tested this though.</p> <p>It seems that you are trying to make a camera preview with the TextureView, there is a good example <a href="http://docs.xamarin.com/recipes/android/other_ux/textureview/display_a_stream_from_the_camera/" rel="nofollow">here</a>, and a more advanced version <a href="http://www.tutorialspoint.com/android/android_textureview.htm" rel="nofollow">here</a>.</p>