在fragment中有自定義布局,extend RelativeLayout
public class Footer extends RelativeLayout
如何從這個自定義對象中使用getSupportFragmentManager
?我用this.getContext()的時候會給出應用,不是 FragmentActivity
The method getSupportFragmentManager() is undefined for the type Footer (extends RelativeLayout)
this.getactivity()獲得父activity