资 源 简 介
动态加载Fragment1的布局文件
view=inflater.inflate(R.layout.fragment1,container,false);
获取布局上的控件,注意通过view获取
tvinfo=(TextView)view.findViewById(R.id.textView8);
tvinfo.setText("微信");
注意Toast第一个参数上下文
//实例化ArticleModel,调用方法获取网络数据
ArticleModel articleModel=new ArticleModel();
文 件 列 表
FragmentDemoAdv
src
res
libs
gradle
gen
build
bin
assets
app
gradlew
.classpath
.gradle
2.14.1
taskArtifacts
cache.properties
.idea
compiler.xml
.project
.settings
org.eclipse.jdt.core.prefs
AndroidManifest.xml
build.gradle
FragmentDemoAdv.iml
gradlew.bat
ic_launcher-web.png
import-summary.txt
local.properties
proguard-project.txt
project.properties
settings.gradle
.gradle
.idea
.settings