- Forum posts: 14
May 16, 2016, 10:22:07 PM via Website
May 16, 2016 10:22:07 PM via Website
I'm trying to create a custom view.
I create a class file View subclass.
And I add it to the XML file for the interface.
It says the class file can't be found.
And when I compile it says "view cannot be instantiated" and crashes.
Do I have to add some sort of import com.me.app.MyView in the XML interface file?
Where do I add the include statement?
Some kind of include in the MainActivity java file?
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.