question

njsokalski avatar image
0 Votes"
njsokalski asked RobCaplan edited

Unexplained InflateException Claiming Invalid Column Count

When attempting to debug my app, I receive the following message:

Android.Views.InflateException: 'Binary XML file line #1 in com.companyname.spades_scorekeeper:layout/activity_main: column indices (start + span) mustn't exceed the column count. '

If I understand this message correctly, it is saying that the android:columnCount attribute of one of my GridLayout(s) is too small. As best I can tell, this is not true. Not only have I checked my code many times, but everything is displayed correctly in the designer as well. If there is a code problem, why is the designer not complaining, and how do I find it? If there is not a problem, why am I receiving the error? Thanks.

dotnet-xamarin
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Based on your error message, android:columnCount is too small. do you use background code to add column to GridLayout?

0 Votes 0 ·

No, the ui/xml code is 100% static

0 Votes 0 ·

Could you share a demo that could reproduce this issue?

0 Votes 0 ·

0 Answers