question

njsokalski avatar image
0 Votes"
njsokalski asked ·

Not All Xamarin.Android Style Properties Recognized in Designer

I have several styles (from the styles.xml file) that include properties such as android:inputType for EditText & android:orientation for LinearLayout. Although this does not (at least not for anything I have noticed yet, but I am relatively new to Xamarin.Android) cause a problem when debugging, they give the squiggly red or green error or warning such as "Missing explicit orientation" or "No input type specified". Is this to be expected? It is also strange, for example, that even though the designer applies the android:orientation for LinearLayout, it still claims that I did not specify it. It would be nice if the designer recognized when I specify properties in my styles.

dotnet-android
10 |1000 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.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered ·

Hello,


Welcome to our Microsoft Q&A platform!

they give the squiggly red or green error or warning such as "Missing explicit orientation" or "No input type specified". Is this to be expected?

This is a kind of warm reminder, which I think is very necessary. This is a nice hint when a developer forgets to add a property or is unfamiliar with a property while developing an app.

It is also strange, for example, that even though the designer applies the android:orientation for LinearLayout, it still claims that I did not specify it.

This is usually because the IDE does not recognize such properties, you can build your app, so that this problem does not occur.

Hope it can help you.


Best Regards,

Jessie Zhang


If the response is helpful, please click "Accept Answer" and upvote it.


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




·
10 |1000 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.