title: xamarin android How to increase multiline edit text height with screen height?
body: <p>I want to manage multi line edit text control's height with respect to device screen height. Height should be 40% of screen. </p>
  
  <p>I have used max lines, lines and min lines properties. If I set these properties then height does change but if screen height changes or device shifted to horizontal then edit text goes out of the screen. in short, multi line edit text height must be dynamic with screen size. It should shrink and expand as other control does with screen size. </p>
  
  <p>Screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/NA149.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NA149.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:focusableInTouchMode="true"
  android:background="#e8eeff"&gt;
  &lt;EditText
      android:id="@+id/etTextMultiLine"
      android:inputType="textMultiLine"
      android:gravity="top|left"
      android:layout_height="wrap_content"
      android:layout_width="match_parent"
      android:scrollbars="vertical"
      android:hint="Enter a Text"
      android:background="@layout/EditTextStyle"
      android:textColorHint="#404144"
      android:textColor="#404144"
      android:layout_marginLeft="5dp"
      android:layout_marginRight="5dp"
      android:layout_marginTop="5dp"
      android:padding="5dp" /&gt;
  </code></pre>
  
  <p></p>