title: EditText shrinking
body: <p>Problem:
  EditText no matter what i will do always act like wrapped around text (he is fitted to text lenght and expand during typing). My intention is to have size fixed EditText.</p>
  
  <p>Target android: 19
  Minimal android: 10</p>
  
  <p>I try to put EditText on MainActivity:</p>
  
  <pre><code>import android.os.Bundle;
  import android.annotation.SuppressLint;
  import android.content.Context;
  import android.support.v7.app.ActionBar;
  import android.support.v7.app.ActionBarActivity;
  import android.view.LayoutInflater;
  import android.view.Menu;
  import android.view.View;
  
  public class MainActivity extends ActionBarActivity
  {
  
      @SuppressLint("NewApi")
      @Override
      protected void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main_activity);
          showActionBar(this);
      }
  
  
      @SuppressLint("NewApi")
      @Override
      public boolean onCreateOptionsMenu(Menu menu)
      {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return super.onCreateOptionsMenu(menu);
      }
  
  
     @SuppressLint("NewApi")
      private void showActionBar(Context context)
      {
          LayoutInflater inflator = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          View searchView = inflator.inflate(R.layout.search_bar, null);
  
          ActionBar actionBar = getSupportActionBar();
          actionBar.setDisplayHomeAsUpEnabled(false);
          actionBar.setDisplayShowHomeEnabled(false);
          actionBar.setDisplayShowCustomEnabled(true);
          actionBar.setDisplayShowTitleEnabled(false);
          actionBar.setCustomView(searchView);
      }
  }
  </code></pre>
  
  <p>seach_bar.xml which is added in showActionBar method is layout\search_bar.xml:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="horizontal" &gt;
  
  &lt;ImageView
      android:id="@+id/appIcon"
      android:layout_width="45dp"
      android:layout_height="match_parent"
      android:contentDescription="@string/app_name"
      android:src="@drawable/ic_launcher" /&gt;
  
  &lt;EditText
      android:id="@+id/searchEditText"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:maxLines="1"
      android:inputType="text" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>values\styles.xml:</p>
  
  <pre><code>&lt;resources&gt;
     &lt;style name="AppBaseTheme" parent="Theme.AppCompat.Light"&gt;&lt;/style&gt;
     &lt;style name="AppTheme" parent="AppBaseTheme"&gt;&lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>It looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/Q3zAS.jpg" alt="wrong look of EditText"></p>