I have an abstract class ClassA which derives from ViewGroup.
I would like to extend ClassA to these class :
ClassB with LinearLayout layout logic
ClassC with RelativeLayout layout logic
Is this possible ?
I didn’t found how to implement default LinearLayout or RelativeLayout logic in derived method onLayout() and onMeasure().
Is there any other solution if it’s not possible ?
I think it would be better to extend
LinearLayoutandRelativeLayoutdirectly fromClassBandClassC. Then, you use composition to enhance those classes’ behavior with theClassA‘s logic.