简体   繁体   中英

different view in my phone and android studio preview why?

安卓工作室预览

诺基亚 2 预览

显示配置

Why is it showing different layout in my phone?

It is sometimes because of the density you use in android studio and the density of your phone doesn't match and sometimes if you use constraints layout and you don't declare the constraints when you run the app the widgets automatically jumps to top and sometimes because of wrong constraints and sometimes when the android studio IDE crushes. It has many reasons and without seeing your codes i can't say why is this. Hope this helps

It happens sometimes because there are many phones in market with different density. So density of emulator and your phone does not match, and it is also depend how you write the code. So please share your code.

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