简体   繁体   中英

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.

Give your button a width and height but not zero.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM