For those who would like instructions on how to remove Fragments from the project:
1) Copy all the contents of res/layout/fragment_main.xml. Open activity_main.xml, delete the FrameLayout, and paste in the copied contents.
2) Delete fragment_main.xml
3) In MainActivity.java, delete the whole PlaceHolderFragment class:
/**
* A placeholder fragment containing a simple view.
*/
public static class PlaceholderFragment extends Fragment {
public PlaceholderFragment() {
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_quiz, container,
false);
return rootView;
}
}
4) Delete the following lines from onCreate():
if (savedInstanceState == null) {
getSupportFragmentManager().beginTransaction()
.add(R.id.container, new PlaceholderFragment()).commit();
}
At this point you should be all set to run the project.
相关推荐
ADT 0.9.7,ADT8.0.1,ADT10.0.0,ADT12.0.0,ADT15.0.0(不需要下载分数) 搞了2年android了,附件可以用rar打开。
adt下载adt下载adt下载adt下载
android ADT-0.9.7 和ADT-10.0.1
为类型的属性和可对类型执行的操作提供一个抽象的描述。不受特定的实现和编程语言的约束。这种正式的抽象描述被称为抽象数据类型(Abstract Data Type,ADT)。C语言ADT,仅供学习使用。
由于打开Eclipse或者ADT Bundle后,无法查看Activity的预览图,Eclipse提示"This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in". 这是由于ADT...
Eclipse ADT 离线安装包,用于Eclipse安装ADT进行安卓程序开发
Eclipse插件ADT安装教程,翻译版。
问题描述:Android SDK更新后,打开Eclipse软件时,出现This Android SDK requires Android Developer Toolkit version 23.0.0 or above提示,意思是该SDK需要ADT(Android Developer Toolkit)23.0.0或以上版本。...
安卓ADT必不可缺少的工具,主要为Eclipse插件,Eclipse扩展安卓应首先应当安装,必不可少
手贱更新了23.0.0,发现不能自动生成MainActivity.java和activity_main.xml,极度不爽,于是下载了ADT-23.0.2,自动生成又回来了. 声明:这个压缩包只有adt,没有和eclipse绑定,如果需要绑定的版本,请移步,以免浪费资源分....
问题描述:Android SDK更新后,打开Eclipse软件时,出现This Android SDK requires Android Developer Toolkit version 23.0.0 or above提示,意思是该SDK需要ADT(Android Developer Toolkit)23.0.0或以上版本。...
Android adt 22版本。你值得拥有。可用的adt。
AndroidADT下载地址最新ADT-23.0.4版
android adt工具ADT-22.0.1 从https://dl-ssl.google.com/android/eclipse/升级不成功 下载了ADT-22.0.1.zip 安装:eclipse中Help->Install New Software->Add->Archive,直接选择下载的zip文件升级
Android ADT离线包(ADT-23.0.6.zip)
1.Google已停止对ADT的支持,尤其是JDK8推出后,ADT已经不能使用,报unsupported class file version 52.0等问题 2.网上的adt24.0.2版本对logcat日志有问题 3.里面已经包含...
包含了ADT-10.0.0.zip 和Eclipse 中安装ADT插件的过程
ADT20、ADT21UI设计器
ADT-16.0.1.zip adt android sdk