I have this edittext and button, and i have to reduce its height. i try with android:height="10px" but it doesn't work. btw android:width="180px" works ok, then i don't know why i can't adjust the height.. Overview. the edittext is the standard text entry widget in android apps. if the user needs to enter text into an app, this is the primary way for them to do that. there are many important properties that can be set to customize the behavior of an edittext.several of these are listed below.. The android:inputtype attribute allows you to specify various behaviors for the input method. most importantly, if your text field is intended for basic text input (such as for a text message), you should enable auto spelling correction with the "textautocorrect" value. you can combine different behaviors and input method styles with the android:inputtype attribute..
To make your edittext single line add android:inputtype attribute and set it's value to text.. Old topic but still :) i don't think setting a width and height to style is a good idea. basically it compiles and usually works but i experienced situations with more complex layouts, includes etc. where it was causing problems.. Setting edittext underline color in android for api 21 (lollipop) and above , just set the color of property backgroundtint on the edittext <android.support.v7.widget.appcompatedittext android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="enter some inputs" android:backgroundtint="#0c53e2"/>.