android 数据传递——实例化对象调用方法

1、 2、(1)在LeftMenuFragment中添加       public void SetData(String str){ System.out.println("侧栏接收到的数据是"+str); } (2)在Main2Activity中根据标查找Fragment       //根据fragment标签返回Fragment public LeftMenuFragment getLef
相关文章
相关标签/搜索