简体   繁体   English

Android Studio无法看到按钮

[英]Android Studio can't see the buttons

I created a new empty Android Studio project. 我创建了一个新的空Android Studio项目。 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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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