Closed i-am-the-slime closed 10 years ago
You can make S...
version of your custom view as shown below:
class SLockScreenClock extends LockScreenClock with TraitView[SLockScreenClock]
Actual trait that you extend is depends on what your base class inherits. If your base class inherits ViewGroup
, you'd better to extend TraitViewGroup[SLockScreenClock]
.
I have made two custom Views. How do I make them compatible with the XML-less approach?
Is translated to this:
Which is obviously wrong. How do I make S* versions of my custom views?