简体   繁体   中英

Android Studio can't see the buttons

I created a new empty Android Studio project. I tried to put any button on the screen but nothing happened. Any idea? 在此处输入图片说明

You are using constraint layout in which case you'll have to set constraints to the button.

For starters, you can use

start_toStartOf="parent"
top_toTopOf="parent"

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