资源简介
功能相当完善的记事本app
[注:本内容来自网络,在此分享仅为帮助有需要的网友,如果侵犯了您的权利,麻烦联系我,我会第一时间删除,谢谢您。]
代码片段和文件信息
/*
* Copyright (C) 2015 Federico Iosue (federico.iosue@gmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation either version 3 of the License or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not see .
*/
package it.feio.android;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.MediumTest;
import it.feio.android.omninotes.MainActivity;
import static org.junit.Assert.assertNotNull;
public class MainActivityTest extends ActivityInstrumentationTestCase2 {
public MainActivityTest() {
super(MainActivity.class);
}
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@MediumTest
public void testRemoveExistentDetailFragment() {
MainActivity mainActivity = getActivity();
assertNotNull(mainActivity);
assertSame(MainActivity.class mainActivity.getClass());
FragmentManager fm = mainActivity.getSupportFragmentManager();
Fragment f = new TestFragment(“tf1“);
fm.beginTransaction().add(f “tf1“).commit();
}
public MainActivity getActivity() {
if (super.getActivity().getClass().isAssignableFrom(MainActivity.class)) {
return (MainActivity) super.getActivity();
}
return null;
}
}
class TestFragment extends Fragment {
private String tag;
public TestFragment(String tag) {
this.tag = tag;
}
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
assertNotNull(getActivity().getSupportFragmentManager().findFragmentByTag(this.tag));
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1156 2016-04-16 15:10 功能相当完善的记事本app\JavaApk源码说明.txt
....... 579 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\.gitignore
....... 1940 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\.travis.yml
....... 1143 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\build.gradle
....... 35147 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\COPYING.txt
....... 4921 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\files.svg
....... 23 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\help\help.md
....... 30454 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\ic_launcher-web.png
....... 34402 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\logo.png
....... 45203 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\logo.svg
....... 1135201 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\ON_banner_g+.xcf
....... 1119123 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\ON_banner_play.xcf
....... 4364 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play.svg
....... 673848 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\01.png
....... 759237 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\02.png
....... 514275 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\03.png
....... 461280 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\04.png
....... 474292 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\05.png
....... 474993 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\06.png
....... 573671 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\07.png
....... 1169240 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\08.png
....... 507996 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\09.png
....... 552037 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\10.png
....... 881370 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\11.png
....... 877674 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\12.png
....... 41100 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\thumb_00.png
....... 52303 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\thumb_01.png
....... 39954 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\thumb_02.png
....... 31433 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\thumb_03.png
....... 33439 2015-02-08 13:34 功能相当完善的记事本app\Omni-Notes-develop\etc\play_store_pics\thumb_04.png
............此处省略833个文件信息
相关资源
- Qt实现的一个文本编辑器
- 安卓记事本
- vs编写的记事本含教程
- VC版超级记事本
- 极客学院 记事本安卓案例
- 毕业设计之基于QT下的终端设计
- 鳄鱼小顽皮
- WIFI视频小车WF-103Rb安卓源码和下位机
- 没有使用edit控件win32编程实现记事本
- 安卓连连看
- 仿美团外卖网络获取资源界面优化.
- 通过图片可以测试年龄和性别
- 语音合成和语音听写,科大讯飞,代
- 当下最流行的相机挂件,在人脸的眼
- 仿苹果、小米基于Gridview的带时间的相
- 安卓记事本小项目
- 简易记事本,poppad对话框之间发送消
- 表白程序+心形玫瑰+记事本自动表白
- VC编写的超级记事本程序
- 2个安卓记事本源码+开机动画以及密码
- QT简单的记事本
- Notepad++中文版 v6.9.2
- 记事本+闹钟
- Qt实现notepad记事本源码工程(版本二
- Qt制作的记事本软件
- 简单记事本vs2005
- 基于Qt的记事本
- 超高仿京东商城最新版源码(非常好
- 视频直播源码
- 安卓点餐系统源码服务器和客户端
评论
共有 条评论