//2014.10.17 01:19 //题意: //先输入一个数N,然后分块输入,每块输入每次2个数,n,m,直到n,m同一时候为零时 //结束,当a和b满足题目要求时那么这对a和b就是一组 //注意: //每一块的输出中间有一个回车 A Mathematical Curiosity Time L ...
分类:
移动开发 时间:
2017-05-08 10:10:59
阅读次数:
175
1、在非常多情况下,我们可能不知道控件的id,可是我们却希望在包括这个控件的视图中找到它,能够採用例如以下做法: 例:在Activity的根视图中找出当中全部的Button控件 private void findButton(ViewGroup group, List<Button> result) ...
分类:
移动开发 时间:
2017-05-08 10:06:33
阅读次数:
212
(1)两种方法提冲Spinner中的数据源:通过list集合,或者是通过xml文件进行配置 (2)布局代码例如以下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="htt ...
分类:
移动开发 时间:
2017-05-08 09:59:52
阅读次数:
153
1.配置app build.gradle 1 2 3 4 5 6 7 8 9 10 11 12 13 2.配置Okhttp和Retrofit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3 ...
分类:
移动开发 时间:
2017-05-08 01:23:40
阅读次数:
313
开发Android应用时,有时候Java层的编码不能满足实现需求,就需要到C/C++实现后生成SO文件,再用System.loadLibrary()加载进行调用,这里成为JNI层的实现。常见的场景如:加解密算法,音视频编解码等。在生成SO文件时,需要考虑适配市面上不同手机CPU架构,而生成支持不同平 ...
分类:
移动开发 时间:
2017-05-08 01:18:07
阅读次数:
236
1、为什么需要多个进程? 默认情况下,一个Android应用中所有的组件都会运行在以包名为进程名的单个进程中,但是由于Android自身平台的一些限制或者多进程固有的一些好处,导致很多应用在实现的时候不得不选择多进程的实现方式: 1.1. Android系统对每一个应用进程的内存占用有限制,视具体设 ...
分类:
移动开发 时间:
2017-05-08 01:17:04
阅读次数:
225
开发前期使用eclipse,后来手贱又安装了Android studio,创建虚拟机后eclipse打不开已经创建好的虚拟机,哇擦~这也冲突??? 查了好多资料,结果发现,只需要直接在新建模拟器的时候把它的内存RAM设置在1024以下就可以,我改成了512 至于为什么内存改低了就可以,留待以后探索吧 ...
分类:
移动开发 时间:
2017-05-08 01:16:23
阅读次数:
346
第一步,重写WebView的onGenericMotionEvent方法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 第二步,让对应的WebView对象调用之前setCallback这个方法,返回外部ScrollView的滚轮事件 ...
分类:
移动开发 时间:
2017-05-08 01:15:53
阅读次数:
230
1、引入jar到pom.xml <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.1.1</version> ...
分类:
移动开发 时间:
2017-05-08 01:15:00
阅读次数:
1451
1.点击File->Invalidate Caches / Restart... 2.重启Gradle,清除缓存 3.Clean Project 4.关闭Android Studio 删除 C:\Users\Administrator\.AndroidStudio2.1 中除config文件夹外的其 ...
分类:
移动开发 时间:
2017-05-08 00:25:28
阅读次数:
262
移动端选择插件mobiscroll的使用demo 一开始是弄个日期选择的插件,网上看到这个mobiscroll这个插件,然后各种下各种找demo,最后自己研究了一天下面把自己项目的demo拔出来分享给大家(以及文件下载),多多海涵,如果大家看了我的这文章有更好的写法还望赐教~ 首先是常用的日期使用: ...
分类:
移动开发 时间:
2017-05-08 00:24:12
阅读次数:
1025
https://github.com/Hironsan/BossSensor/ 背景介绍 学生时代,老师站在窗外的阴影挥之不去。大家在玩手机,看漫画,看小说的时候,总是会找同桌帮忙看着班主任有没有来。 一转眼,曾经的翩翩少年毕业了,新的烦恼来了,在你刷知乎,看视频,玩手机的时候,老板来了! 不用担心 ...
分类:
移动开发 时间:
2017-05-07 23:21:46
阅读次数:
735
java-mybaits-00401-Mapper-输入输出 ...
分类:
移动开发 时间:
2017-05-07 23:13:05
阅读次数:
308
一.mybatis默认支持别名 别名 映射的类型 _byte byte _long long _short short _int int _integer int _double double _float float _boolean boolean string String byte Byte ...
分类:
移动开发 时间:
2017-05-07 23:04:45
阅读次数:
310
思路:
1、mp3转成pcm(音频数据),ffmpeg做的事
2、OpenSL ES引擎创建AudioPlayer,实际调用了AudioTrack遇到的错误:
Error #include ne...
分类:
移动开发 时间:
2017-05-07 22:06:50
阅读次数:
799
1 #include 2 #include 3 4 using namespace std; 5 6 const int N(100015); 7 int n,m,v,u; 8 int edgesum,head[N]; 9 10 struct Edge 11 { 12 int from,to,nex... ...
分类:
移动开发 时间:
2017-05-07 22:06:04
阅读次数:
214
Android编程:底部弹出的对话框本文博客链接:http://blog.csdn.net/jdh99,作者:jdh,转载请注明.环境:主机:WIN10开发环境:Android Studio 2.2 ...
分类:
移动开发 时间:
2017-05-07 22:04:51
阅读次数:
255