错误:The specified child already has a parent. You must call removeView()。解答:这个错误非常直白,就是你viewGroup.addView(childView); 中childView已经有父View了。错误原因非常多,我主要讲下...
分类:
移动开发 时间:
2016-01-26 12:36:54
阅读次数:
180
转:http://blog.csdn.net/luoshengyang/article/details/29688041前面101篇文章都是分析Android系统源码,似乎不够接地气。如果能让Android系统源码在真实设备上跑跑看效果,那该多好。这不就是传说中的刷ROM吗?刷ROM这个话题是老罗以...
分类:
移动开发 时间:
2016-01-26 12:34:45
阅读次数:
610
介绍:和音频播放一样,ios也提供个很多的API。如mediaPlayer.framework下的MPMediaPlayerController、AVFounditon.framework下的AVPlayer和AVKit下的AVPlayerViewcontroller。MPMovieplayerCo...
分类:
移动开发 时间:
2016-01-26 12:32:14
阅读次数:
334
NSString *dataStr = @"1453709220"; double lastactivityInterval = [model.addtime doubleValue]; NSDateFormatter* formatter = [[NSDateFormatter alloc...
分类:
移动开发 时间:
2016-01-26 12:31:26
阅读次数:
195
1:如果想让tabview可以滑动,cell不相应用户的点击。需要在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ExpenseVi.....
分类:
移动开发 时间:
2016-01-26 12:28:12
阅读次数:
170
//在-(void)viewWillAppear:(BOOL)animated方法中添加返回按钮//返回按钮 UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom]; leftButton.frame=CGRect...
分类:
移动开发 时间:
2016-01-26 12:28:13
阅读次数:
215
写Android测试用例有三要素,一是我们用的“安卓模拟器device”,二是“uiautomatorviewer.bat”,三是“Robotium”中提供的类。在写好Android的测试用例后,可通过AndroidJUnitTest批量运行测试代码。一共分四步——第一步:写一个suite类(sui...
分类:
移动开发 时间:
2016-01-26 12:25:32
阅读次数:
304
AlertDialog.Builder builder = new AlertDialog.Builder(_context); builder.setTitle("温馨提示").setMessage("您的账户被锁定,请联系闭门!") .setPo...
分类:
移动开发 时间:
2016-01-26 12:20:58
阅读次数:
181
为什么你的 App 没人用?请按这8条逐一对照Kamo Asatryan 可能是这个世界上关注创新生态系统最多的一些人之一,他观察过数百个移动端 App,深入思考过它们的运行机制,并为它们的快速增长提供过切实有效的建议。目前,他是 Prime 公司的 CEO,这家新兴公司专门负责改善移动端 App ...
分类:
移动开发 时间:
2016-01-26 12:18:02
阅读次数:
261
项目中用到弹出Acitivity来获得用户输入 所以用到 onActivityResult()方法接受用户输入奇怪问题 startActivityForResult() 后直接调用 onActivityResult() 开发人员都知道,可以通过使用 startActivityForResult() ...
分类:
移动开发 时间:
2016-01-26 12:19:20
阅读次数:
206
Android中常常使用shape来定义控件的一些显示属性,今天看了一些shape的使用,对shape有了大体的了解,稍作总结:先看下面的代码: solid:实心,就是填充的意思android:color指定填充的颜色gradient:渐变android:startColor和an...
分类:
移动开发 时间:
2016-01-26 12:12:37
阅读次数:
179
//安装apk文件private void installAPK(File file) {Intent intent = newIntent(Intent.ACTION_VIEW);Uri data =Uri.fromFile(file);String type ="application/vnd....
分类:
移动开发 时间:
2016-01-26 12:08:31
阅读次数:
178
Esko ArtiosCAD v14.1 ALPHA Biuld 1132 1DVD结构设计ProMax v2.0.7047 1CD流程模拟软件 QQ:1458538100 邮件(Email):1458538100@qq.comSIMULIA ABAQUS 2016.0 Win64 & Linux6...
分类:
移动开发 时间:
2016-01-26 12:07:55
阅读次数:
395
Xcode7 beta 网络请求报错:The resource could not be loaded because the App TransportXcode7 beta 网络请求报错:The resource could not be loaded because the App Trans...
分类:
移动开发 时间:
2016-01-26 12:04:52
阅读次数:
180
好消息,Android 开发技术周报开通了邮件订阅,赶快来订阅吧,订阅请戳我戳我戳我,还有还有现在也可以推荐资源给Android开发技术周报了,推荐资源请戳我戳我戳我
新闻
在 Google 看来,应用商店都将消亡,而搜索永存
搜索才是王道,让用户在 Google 搜索结果里直接安装 App
教程
Android Scroller完全解析,关于Scroller你所...
分类:
移动开发 时间:
2016-01-26 10:43:37
阅读次数:
239