Fragment之间传值CallBack(Fragment02)
来源:互联网 发布:多核编程的艺术 编辑:程序博客网 时间:2024/06/08 13:10
package com.bwie.fragmentcallback;import android.content.Context;import android.os.Bundle;import android.support.annotation.Nullable;import android.support.v4.app.Fragment;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.TextView;/** * Created by Shadow on 2017/7/11. */public class Fragment02 extends Fragment { private View view; @Override public void onAttach(Context context) { super.onAttach(context); } @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment2, container, false); return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); } public void setText(String s){ TextView fragment2_tv = (TextView) view.findViewById(R.id.fragment2_tv); fragment2_tv.setText(s); }}
阅读全文
0 0
- Fragment之间传值CallBack(Fragment02)
- Fragment之间传值CallBack(Fragment01)
- Fragment之间传值CallBack(MainActivity)
- Fragment之间传值
- Fragment之间传值
- Fragment之间传值
- Fragment 之间传值
- Fragment 之间的传值
- Fragment之间传值(第三周周考)
- activity嵌套fragment,fragment内嵌fragment之间传值切换fragment
- Activity和Fragment之间的传值
- Fragment与Activity之间传值
- Android fragment 之间传值的方法
- android中fragment之间传值
- Activity与Fragment之间的传值
- Fragment之间传值的方法
- DialogFragment与Fragment之间互相传值
- Activity与Fragment之间的传值
- JavaScript:为什么函数声明后可以不加分号而函数表达式后要加分号呢?
- 进程间通信(1):匿名管道
- (转)关于DC和SelectObject()函数
- [Codeforces]817F. MEX Queries 离散化+线段树维护
- TP多图上传
- Fragment之间传值CallBack(Fragment02)
- HDU-3068 最长回文(manacher算法)
- eclipse修改编码及字体
- 实验二 UDP 通信实验
- 已解决:android studio找不到svn的配置了
- 浅析python中两种import的使用区别
- Scrapy-Item Loaders(项目加载器)
- Nginx详细安装部署教程
- Fragment之间传值CallBack(MainActivity)