开发者

Help with creating a compound component in Mono for Android

开发者 https://www.devze.com 2023-03-13 09:15 出处:网络
I would like to create a compound component that consists of a TextView (integer only) and two buttons that would be used to make an up/down (increment) button.I am using Mono for Android (MonoDroid)

I would like to create a compound component that consists of a TextView (integer only) and two buttons that would be used to make an up/down (increment) button. I am using Mono for Android (MonoDroid) but no matter what I do I 开发者_如何学Pythoncannot get it to work, I keep getting an error about the java class not being found.

If anyone has any experience with this and can assist I would greatly appreciate it.

Thank you.


Without any details, all I can do is take a blind stab at the answer.

My guess is you've created your own View class in C#, and are trying to reference it in a layout file. You need to reference it using the Java name and not the C# name.

See this documentation for more:

http://mono-android.net/Documentation/Guides/Using_Custom_Views_in_a_Layout

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号