RecyclerView是android-support-v7-21版本中新增的一个Widgets,RecyclerView是ListView的升级版本,更加先进和灵活。在以后的开发中我们就可以直接使用RecyclerView来替换ListView。...
分类:
移动平台 时间:
2015-05-18 16:48:42
收藏:
0 评论:
0 赞:
0 阅读:
7709
原因:
写这个的原因就是网上大都是告诉你如何用drawable里的资源做快捷方式,那么本地的图片能不能做快捷方式呢?肯定是可以的,所以我找了下安卓的源码,发现有这样的介绍
/**
* Activity Action: Creates a shortcut.
* Input: Nothing.
* Output: An Intent representing...
分类:
移动平台 时间:
2015-05-18 16:48:22
收藏:
0 评论:
0 赞:
0 阅读:
199
android 一个集合问题导致不得不说的故事...
分类:
移动平台 时间:
2015-05-18 16:47:22
收藏:
0 评论:
0 赞:
0 阅读:
262
Android编码规范
1.包命名
一个唯一的包名总是全部小写,构造为顶级域名com/edu/net+机构部门缩小+项目所写+模块名
例如com.tghz.gameimsdk.activity
2.类命名
类名采用驼峰式命名,大小写混合,每个单词的首字母大写,使用完整单词,避免缩写词(除非该缩写词被广泛的使用,如URL,HTML)。
类名的每个单词为名词,避免出现无意义的单...
分类:
移动平台 时间:
2015-05-18 16:45:12
收藏:
0 评论:
0 赞:
0 阅读:
214
昨天在家折腾了一天,把电脑上装了个ubuntu系统,并成功搞定jdk及Androidstudio的安装,可以新建项目直接运行,之前没有接触过ubuntu,一天下来勉强把ubuntu上一小部分基本操作搞懂了,随便写个笔记记录下:
1,从http://www.linuxidc.com/Linux/2015-01/112030.htm1下载linux环境的jdk压缩包:jdk-8u45-linux-x...
分类:
移动平台 时间:
2015-05-18 16:44:33
收藏:
0 评论:
0 赞:
0 阅读:
317
??
设置 android:noHistory="true"后,该Activity在statck中不留历史痕迹。默认的值是false。
举例说明,假设有三个Activity分别是:A,B,C。这三个Activity可以依次顺序启动下一个Activity,比如,在A中做一个Button,用户点击后跳转到B ; 同样,在B中也做一个Button,点击跳转到C。C不再做Button,只是一个用以演示...
分类:
移动平台 时间:
2015-05-18 16:44:22
收藏:
0 评论:
0 赞:
0 阅读:
90
北风网android企业实战课程的培训班,是北风网最新推出的培训班的课程,北上广地区包就业,其他地区推荐就业...
分类:
移动平台 时间:
2015-05-18 16:43:02
收藏:
0 评论:
0 赞:
0 阅读:
269
一、第一种错误:
错误日志大体是这样:The project is using an unsupported version of the Android Gradle plug-in
(0.9.2)
问题分析:从英文意思上看是说,你的工程正在使用不支持的gradle版本。是因为的androidStudio版本过高,对于低版本的gradle插件不再支持导致的。那问题怎么解决呢,Androi...
分类:
移动平台 时间:
2015-05-18 16:42:08
收藏:
0 评论:
0 赞:
0 阅读:
278
1.Error:The project is using an unsupported version of the Android Gradle plug-in (0.12.2). The recommended version is 1.2.3. 2.Unable to load class 'org.codehaus.groovy.runtime.typehandling.ShortTypeHandlin...
分类:
移动平台 时间:
2015-05-18 16:39:22
收藏:
0 评论:
0 赞:
0 阅读:
3993
Please see the correct annswer HERE You have set a break point in one of the classes. Just take off all the break points in your project and run again...
分类:
移动平台 时间:
2015-05-18 16:36:23
收藏:
0 评论:
0 赞:
0 阅读:
200
#include #include #include #include //mac address// Return the local MAC addy// Courtesy of FreeBSD hackers email list// Accidentally munged during pr...
分类:
移动平台 时间:
2015-05-18 16:34:54
收藏:
0 评论:
0 赞:
0 阅读:
260
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动平台 时间:
2015-05-18 16:30:20
收藏:
0 评论:
0 赞:
0 阅读:
175
在Android开发中,定时器一般有以下3种实现方法:原文地址http://www.360doc.com/content/12/0619/13/87000_219180978.shtml一、采用Handler与线程的sleep(long)方法二、采用Handler的postDelayed(Runna...
分类:
移动平台 时间:
2015-05-18 16:28:32
收藏:
0 评论:
0 赞:
0 阅读:
255
Style样式 .toggle { position: relative; display: inline-block; width: 60px; height: 30px; ...
分类:
移动平台 时间:
2015-05-18 16:23:02
收藏:
0 评论:
0 赞:
0 阅读:
174
icon (尺寸为px) 目录 尺寸 (width * height) drawable 72 x 72 drawable-hdpi 72 x 72 drawable-ldpi 36 x 36 ...
分类:
移动平台 时间:
2015-05-18 16:20:12
收藏:
0 评论:
0 赞:
0 阅读:
385
下面错误集合转自:http://blog.csdn.net/panfb227/article/details/6152988 请尊重原作者!【错误信息】[2011-01-19 16:39:10 - ApiDemos] WARNING: Application does not specify an ...
分类:
移动平台 时间:
2015-05-18 16:14:42
收藏:
0 评论:
0 赞:
0 阅读:
181
本文copy自http://www.daqianduan.com/4441.html,收藏。移动端开发主要对象是手持设备,其中绝大部分是IOS和Android系统,so,在开发此类页面时不必纠结IE和其他一些2B浏览器的兼容性,webkit是本次开发重点。当然,不同版本的Android是存在一些问题...
分类:
移动平台 时间:
2015-05-18 16:12:32
收藏:
0 评论:
0 赞:
0 阅读:
162
1、准备工作(1)在项目中集成 Base64 代码,集成方法见第一篇博文:android Java BASE64编码和解码一:基础 (2)添加 ImgHelper工具类package com.app21;import java.io.ByteArrayOutputStream;import java...
分类:
移动平台 时间:
2015-05-18 16:12:12
收藏:
0 评论:
0 赞:
0 阅读:
255
今天我想分享我在Android上实现MVP(Model-View-Presenter)模式的方法。如果你对MVP模式还不熟悉,或者不了解为什么要在Android应用中使用MVP模式,推荐你先阅读这篇维基百科文章和这篇博客。使用Activity和Fragment作为View合适么?目前,在很多使用了M...
分类:
移动平台 时间:
2015-05-18 16:11:22
收藏:
0 评论:
0 赞:
0 阅读:
185
1、将Unit升级至4.6.x或5.0.x,将Vuforia差距升级到最新版本(vuforia-unity-mobile-android-ios-4-0-105)2、平台Other Settings设置中将 Scripting Backend设置为:IL2CPP ,Architecture设置为:U...
分类:
移动平台 时间:
2015-05-18 16:04:22
收藏:
0 评论:
0 赞:
0 阅读:
4425