[英]different view in my phone and android studio preview why?
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.有时是因为你在 android studio 中使用的密度和你手机的密度不匹配,有时如果你使用约束布局并且你在运行应用程序时没有声明约束,小部件会自动跳转到顶部,有时由于错误的约束,有时当 android studio IDE 崩溃时。 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.所以请分享您的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.