title: maxWidth EditText in Android
body: <p>I tried to apply a maxWidth on a EditText in Android. But the attributes seems to be ignored.
  In fact, I just want to have an EditText align in the center of the screen with a maximum size for big screen. Here my code : </p>
  
  <pre><code>&lt;LinearLayout  
         android:layout_width="fill_parent"
         android:layout_height="40dp"
         android:paddingLeft="30dip" 
         android:paddingRight="30dip"
         android:gravity:"center" &gt;    
         &lt;EditText
                android:id="@+id/name"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:hint="@string/input_name"
                android:nextFocusUp="@+id/password"
                android:maxWidth="120dip" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thanks for your help</p>