简体   繁体   中英

Button will not show in AVD on Android Studio

I'm new to Android Studio and i have been trying to get the button to work but on my device it wouldn't show but on my design page it's there but no errors show up.

the design layout

设计布局

the code

编码

the AVD

AVD

Remove either layout_marginTop or layout_constraintVertical_bias attribute from the Button, according to the design requirements. Bias moves the button to the very bottom of the screen, and margin moves it event lower, out of the visible are.

PS do not trust AS layout preview, it lies sometimes:)

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