[英]Android - buttons go off the edge of the screen, but text view fits in the screen
enter image description here在此处输入图像描述
I firstly added the button, and try to add new text view, but when I infer constraints, the button goes off the screen.我首先添加了按钮,并尝试添加新的文本视图,但是当我推断约束时,按钮会离开屏幕。 I tried to change the margin_Top, end, right, bottom, but it doesn't work.
我试图改变margin_Top、end、right、bottom,但它不起作用。
Give your button a width
and height
but not zero.给你的按钮一个
width
和height
,但不是零。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.