开发者

Help with creating a compound component in Mono for Android

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜