codelab-constraint-layout
codelab-constraint-layout copied to clipboard
The Infer Constraints functionality is not working
I am using Android Studio 3.1.2 for Windows.
When reproducing step 9 of the codelab I faced the following. After pressing Infer Constraints button the constraints are visually drawn in designer but nothing is written into xml file. After closing the page all constraints are gone. This happens in this particular activity_main_inference.xml file. If I try the same functionality in some newly created layout it works.
I have encountered the same problem, have you solved it?
same problem
I got same problem
Hi. I had a similar issue, but I found that on the App/res/values/styles.xml file, you should add "Base" to the line containing
So it should be
Same problem here. Anyone got the solution? Thanks.
This is terrible. Googles own code doesn't work. Then, how can we as devs be expected to handle this? I do still prefer Relative and LinearLayouts after all this time.
I have the same problem. Adding 'Base' before the Theme doesn't work for me.
I thought I got the same issue. But what I noticed was: when you select everything, using "ctrl + click", you can see all of the elements in a layout with constraints.