新闻
OpenJDK将对Android开发产生怎样的影响?
在2015年年底,InfoQ曾提到Google已经决定在Android中使用OpenJDK,以取代基于Harmony实现的Java库。尽管这条消息在宣布时恰逢圣诞期间,但Google的这一决定还是在互联网上引起了很大的反响,我们将在本文中对于这些观点进行一次总结。
教程
ReactNative For Andr...
分类:
移动开发 时间:
2016-02-02 15:12:51
阅读次数:
272
button的点击效果学习起来事实上比较容易,此点对开发者来说也是使用的比较频繁的一个知识点,与它相关的还有编辑框的获取焦点时改变背景颜色、选择button选择时改变字体颜色等等。这些其实都是用到的drawable的seletor。
效果:(不点击时显示白色,点击时显示灰色)
实现这个效果其实很简单,在drawable中创建一个xml文件,然后输入两行代码即可解决,如图...
分类:
移动开发 时间:
2016-02-02 15:11:30
阅读次数:
215
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="base_bg">#f4f6f6</color> <!-- 下拉刷新背景 --> <color name="Theme_green">#669966</color> //1
分类:
移动开发 时间:
2016-02-02 15:08:56
阅读次数:
670
原文:http://ljinkai.github.io/2015/06/06/mobile-web-skill/ META相关 1. 添加到主屏后的标题(IOS) <meta name="apple-mobile-web-app-title" content="标题"> 2. 启用 WebApp 全
分类:
移动开发 时间:
2016-02-02 15:10:05
阅读次数:
364
转载自 http://www.jianshu.com/p/9e17727f31a1?utm_campaign=maleskine&utm_content=note&utm_medium=mobile_author_hots&utm_source=recommendation 公司最近新起了一个项目,
分类:
移动开发 时间:
2016-02-02 15:05:14
阅读次数:
859
Java关键字static、final使用小结 static 1. static变量 按照是否静态的对类成员变量进行分类可分两种:一种是被static修饰的变量,叫静态变量或类变量;另一种是没有被static修饰的变量,叫实例变量。两者的区别是: 对于静态变量在内存中只有一个拷贝(节省内存),JVM
分类:
移动开发 时间:
2016-02-02 15:07:00
阅读次数:
216
调用一次计时器方法: myTimer = [NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(scrollTimer) userInfo:nil repeats:NO]; //不重复,只调用一次。tim
分类:
移动开发 时间:
2016-02-02 15:01:57
阅读次数:
168
要实现EditText的自动换行需要实现如下设置: <EditText android:id="@+id/function_lifingcost_edit_txtRemark" android:layout_width="fill_parent" android:layout_height="wra
分类:
移动开发 时间:
2016-02-02 15:01:37
阅读次数:
186
一、添加子控制器 UITabBarController添加控制器的方式有2种 添加单个子控制器 - (void)addChildViewController:(UIViewController *)childController;eg:[tabbarVc addChildViewController
分类:
移动开发 时间:
2016-02-02 14:58:45
阅读次数:
197
1.__int64找不到符号 采用int64_t来代替: #if defined(__ANDROID__) typedef int64_t __int64; #endif 2.<sys/io.h>找不到 android下不需要直接引用该文件,用下面的宏去掉即可 #if !defined(__APPL
分类:
移动开发 时间:
2016-02-02 14:55:44
阅读次数:
132
function resetIosScreen() { if ( window.orientation == 90 || window.orientation == -90 ) { userHeight = window.screen.width; } else { userHeight = win
分类:
移动开发 时间:
2016-02-02 14:53:56
阅读次数:
129
1、eclipse关联源码 步骤一:自已百度下载相应版本的源码,我这里是4.2也就是API=17的版本。 步骤二:找到你安装sdk的目录, G:\Program Files\adt-bundle-windows-x86\sdk\platforms\android-4.2 步骤三:在这个目录下新建一个
分类:
移动开发 时间:
2016-02-02 14:48:17
阅读次数:
196
在文章《Android程序员从小白到大神必读资料汇总(一)和(三)》里面介绍了基础学习资料和一点点的进阶资料,今天小编收集了5篇带有实例干货的资料,赶紧来看看吧!另外,喜欢写博客的博主可以申请加工程师博主交流群:391519124,分享你的博文,和大牛们一起交流技术 ~ 一、Android 内存泄漏
分类:
移动开发 时间:
2016-02-02 14:48:40
阅读次数:
177
Error:Unable to start the daemon process: could not reserve enough space for object heap. Please assign more memory to Gradle in the project's gradle.
分类:
移动开发 时间:
2016-02-02 14:47:04
阅读次数:
155
现在最火的android开发框架 简单描述一下 这一篇简单描述寻找控件以及事件的使用 1.该方法可以不用写setconteview @EActivity(R.layout.activity_main)public class MainActivity extends Activity { 2.寻找控
分类:
移动开发 时间:
2016-02-02 14:46:14
阅读次数:
136
<application>节点是AndroidManifest.xml文件中必须持有的一个节点,它包含在<manifest>节点下。通过<application>节点的相关属性,我们可以声明Android应用程序的相关特性。这个节点包含所有应用程序组件的节点,包括Activity,服务,广播接收器和
分类:
移动开发 时间:
2016-02-02 14:42:05
阅读次数:
325
iOS中文转成拼音。 oc: NSString *hanziText = @"中文转拼音"; if ([hanziText length]) { NSMutableString *ms = [[NSMutableString alloc] initWithString:hanziText]; if
分类:
移动开发 时间:
2016-02-02 14:34:53
阅读次数:
256