How to use interface to communicate between fragment and activity?

后端 未结 0 1863
别跟我提以往
别跟我提以往 2020-12-03 06:17

I simply want to call a Fragment method from my MainActivity.

So I tried to use an Interface.

public interface MyInterface {
        void testMethod();         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题