[英]How do I make an EditText have a certain maximum width, but not go off the screen?
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. 我正在尝试设置一个具有设置宽度的EditText,但是如果屏幕小于此宽度,则不会扩展到屏幕之外。 I've tried a number of variations of layout_width and maxWidth and the like, but to no avail.
我已经尝试过许多layout_width和maxWidth之类的变体,但无济于事。 Any ideas?
有任何想法吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.