我的片段中有一个自定义布局,它扩展了 RelativeLayout
public class Footer extends RelativeLayout
如何从此自定义对象中使用 getSupportFragmentManager ?当我使用 this.getContext() 时,它给出的是 Application,而不是 FragmentActivity。
The method getSupportFragmentManager() is undefined for the type Footer (extends RelativeLayout)
等待您的帮助
谢谢