• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Gleis

Lurker
Jun 15, 2020
8
1
Hi guys!
The issue is clear, I design the app, and when I run the emulator the app looks different.
I use the same device for design and emulator (Pixel 3 XL).
Apparently I needed to click in one of the attributes on the design page and then click "Infer Constraints".


I still have some issues, because the button and other attributes are not the same sizes in the emulator.
Can anyone please explain to me how "Infer Constraints" works ?

Screenshot_2.png
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    99.2 KB · Views: 282
  • Screenshot_2.png
    Screenshot_2.png
    182 KB · Views: 232
  • Screenshot_1.png
    Screenshot_1.png
    145.8 KB · Views: 240
Last edited by a moderator:
Hi @Gleis,

I've merged your newer thread in to your slightly-older one on the same topic. Keeping development-related discussion in the Android Development subforum will help it get seen by people who can help. (Unfortunately, that's not me... but hopefully one of our resident developers will be able to assist soon.)
Hello!
Well, the best choice would be to delete the old one and keep the new one since I found the solution, but still facing some issues.
Anyway... thanks!
 
Upvote 0
Well, the best choice would be to delete the old one and keep the new one since I found the solution, but still facing some issues.

Okay, I merged post from your latest thread up to the top of this one so it's like the old one never happened. I also gave the thread a name which might help attract the attention of someone who knows about "Infer Constraints". Hopefully that will help. :)
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones