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

Android Studio - Infer Constraints?

Gleis

Lurker
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: 303
  • Screenshot_2.png
    Screenshot_2.png
    182 KB · Views: 253
  • Screenshot_1.png
    Screenshot_1.png
    145.8 KB · Views: 254
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.)
 
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!
 
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. :)
 
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. :)
Thank's a lot !:D
 
Back
Top Bottom