I am converting my java application to C#, and I'm running into an issue when inflating my custom view.
This is the XML for my component: http://pastebin.com/8Vdu1MgR
This is the class for that component: http://pastebin.com/80cXJMyt
This is my 'attr.xml' file:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="com.alford.phase10scorecenter.PlayerComponent">
<attr name="playerName" format="string"/>
<attr name="playerScore" format="string"/>
<attr name="phaseNumber" format="string"/>
</declare-styleable>
</resources>
Now this works fine in my original java application. However, when trying to inflate the view, I get this error message:
android.view.InflateException: Binary XML file line #1: Error inflating class com.alford.phase10scorecenter.PlayerComponent
Full Stack trace and full error message http://pastebin.com/cDfi9PK8
I can't find any tutorials on creating custom views like this. I only see tutorials with fragments. Can I create and reuse a view like this? Any idea why I'm getting this error message.