【发布时间】:2013-05-10 10:38:32
【问题描述】:
我的片段中有一个自定义布局,它扩展了 RelativeLayout
public class Footer extends RelativeLayout
如何从这个自定义对象中使用 getSupportFragmentManager?当我使用 this.getContext() 时,它会给出 Application ,而不是 FragmentActivity。
The method getSupportFragmentManager() is undefined for the type Footer (extends RelativeLayout)
等待您的帮助
谢谢
【问题讨论】: