mercredi 27 juillet 2016

Android Preference on a personal component witch already extends a class

I created a personal component and I would like to use it in my preference page. I have to extend Preference class, but my component already extends ImageView class.

Basic component: public class MyComponent extends ImageView { }

Should be for preference : public class MyComponentPref extends ImageView, Preference { }

It's impossible to extend more than one class, so with Preference, what is the best practice ?

Thank you for your help

Aucun commentaire:

Enregistrer un commentaire