title: How to make the size of View the same as the size of my custom TextureVIew Android
body: <p>I have code:</p>
  
  <pre><code>&lt;FrameLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentStart="true"
    android:layout_alignParentTop="true"
    android:background="#000000"
    android:id="@+id/frame"&gt;
      &lt;View
        android:id="@+id/tapView"
        android:background="#0000ff"
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"/&gt;
      &lt;com.example.yApp.MyTextureView
        android:id="@+id/texture"
        android:background="#ff0000"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;
  &lt;/FrameLayout&gt;
  &lt;FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentStart="true"&gt;
  &lt;--- some code ---&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>My custom TextureView choose size by code, I need another View (id="tapView") with the same width and height as my custom TextureView and also on the same place on screen.</p>
  
  <p>The problem of my code is that tapView stretches to the full screen and overlaps next FrameLayout</p>