Sadeep Weerasinghe
Sadeep Weerasinghe

Reputation: 1087

Can't extend SpannableStringBuilder?

I need to create a custom class by extending SpannableStringBuilder.

I havent even added anything to the class yet. So my class goes like this.

public class xyz extends SpannableStringBuilder{

}

But when I try to use this class instead of SpannableStringBuilder app crashes. It is working fine when I use SpannableStringBuilder.

I have tried adding the constructors too.

Upvotes: 0

Views: 113

Answers (1)

JstnPwll
JstnPwll

Reputation: 8685

When you call xyz(), are you passing in any parameters? If so, make sure you call the appropriate super() constructor from your xyz constructor.

Upvotes: 1

Related Questions