I'm building a custom view for an android app. The thing is, the custom view consists of 3 arc's (horizontaly spaced out), I want to create a seperate "arc" class to reduce redundancy.
So the question is, how do I do this if I can only extend one class in Java, since the custom view class already has to extend the "view" class?
Edit: I don't have a sample of code, just the class and initial methods.
Maybe a picture could clarify it a bit? As you see, the custom view consists of three arcs that are the same.
Edit: Here is code, but I highly doubt it is of any help.
public class Habits extends View {
public Habits(Context context) {
super(context);
}
public Habits(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
public Habits(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
}