Answer the question
In order to leave comments, you need to log in
How to add (override) a method in an activity after adding this method in the interface?
Hello! The essence of the problem:
I created an interface and 2 activities that inherit this interface:
public interface MyInterface
{
void method_1(int arg1)
}
public class OneActivity extends AppCompatActivity implements MyInterface {
@Override
public void method_1(int arg1) {
//
}
}
public class TwoActivity extends AppCompatActivity implements MyInterface {
@Override
public void method_1(int arg1) {
//
}
}
Alt + Enter
and select the very method that needs to be overridden. This is an example, in a real project I currently have one basic interface for 3 activities and 10 fragments. Adding a new method gives me pain.. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question