My View object in XML

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

My View object in XML

Postby Oleg » Fri Dec 14, 2007 8:54 am

Hi! Can I describe my own View(example MyButton extends Button) in xml layout!
If I have this class ( http://www.anddev.org/c...s-t224.html ) and I write <MyButton ... />
I receive an error message :(
Oleg
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Wed Nov 28, 2007 1:49 pm
Location: Ukraine

Top

Postby Oleg » Fri Dec 14, 2007 11:29 am

Soluton:
in xml layout: <org.tut.MyButton
.../>

where org.tut is project's package and MyButton is class name
Oleg
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Wed Nov 28, 2007 1:49 pm
Location: Ukraine

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 4 guests