title: Defining equal height for views according to screen?
body: <p>How to display all Images height equal and it should match parent on any device?<br>
  How do I design that? </p>
  
  <p>The image is the example.</p>
  
  <p><a href="https://i.stack.imgur.com/G4SPX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G4SPX.png" alt="enter image description here"></a></p>
  
  <p>desing.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout android:layout_width="match_parent"
  android:layout_height="match_parent"
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"&gt;
  
  &lt;ImageView
      android:layout_width="match_parent"
      android:layout_height="170dp"
      android:id="@+id/img1"
      android:src="@drawable/img1" /&gt;
  &lt;ImageView
      android:layout_width="match_parent"
      android:layout_height="170dp"
      android:id="@+id/img2"
      android:src="@drawable/img2" /&gt;
  &lt;ImageView
      android:layout_width="match_parent"
      android:layout_height="170dp"
      android:id="@+id/img3"
      android:src="@drawable/img3" /&gt;
  
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here I set a height of 170dp and this only fits for this screen, but in bigger screens the images will not fit.<br>
  I want to make it fit on any screen.</p>