How do I make an EditText have a certain maximum width, but not go off the screen?

Chloeex

New Member
I'm trying to set up an EditText that has a set width, but if the screen is smaller than this width, does not extend off the screen. I've tried a number of variations of layout_width and maxWidth and the like, but to no avail. Any ideas?
 
Back
Top