| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 |
| 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
| /* | |
| * V4L2 video capture example | |
| * | |
| * This program can be used and distributed without restrictions. | |
| * | |
| * This program is provided with the V4L2 API | |
| * see http://linuxtv.org/docs.php for more information | |
| */ | |
| #include <stdio.h> |
| 😄 | 😆 | 😊 | 😃 |
😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 |
| 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷
😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="daichan4649.gps" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <uses-sdk | |
| android:minSdkVersion="15" | |
| android:targetSdkVersion="17" /> |
| package com.location.model; | |
| public class LatLong { | |
| private double lat, lng; | |
| public LatLong() { | |
| } | |
| public double getLat() { |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
| public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
| private int previousTotal = 0; // The total number of items in the dataset after the last load | |
| private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
| private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
| int firstVisibleItem, visibleItemCount, totalItemCount; |
| package cc.aa; | |
| import android.os.Environment; | |
| import android.view.MotionEvent; | |
| import android.view.View; | |
| public class UnderstandDispatchTouchEvent { | |
| /** | |
| * dispatchTouchEvent()源码学习及其注释 | |
| * 常说事件传递中的流程是:dispatchTouchEvent->onInterceptTouchEvent->onTouchEvent |
| // Update: Hey Folks - I've got a full Gulpfile with everything else over at https://github.com/wesbos/React-For-Beginners-Starter-Files | |
| var source = require('vinyl-source-stream'); | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var browserify = require('browserify'); | |
| var reactify = require('reactify'); | |
| var babelify = require('babelify'); | |
| var watchify = require('watchify'); | |
| var notify = require('gulp-notify'); |
[Android Transition Framework][transition-framework] can be used for three main things:
| #!/bin/bash | |
| # Script adb+ | |
| # Run any command adb provides on all your currently connected devices, | |
| # Or prompt to select one device | |
| showHelp() { | |
| echo "Usage: adb+ [-a] <command>" | |
| echo " -h: show help" | |
| echo " -a: run command on all device" | |
| echo " command: normal adb commands" |
| oldActvity="" | |
| displayName="" | |
| currentActivity=`adb shell dumpsys window windows | grep -E 'mCurrentFocus'` | |
| while true | |
| do | |
| if [[ $oldActvity != $currentActivity && $currentActivity != *"=null"* ]]; then | |
| displayName=${currentActivity##* } | |
| displayName=${displayName%%\}*} | |
| echo $displayName | |
| oldActvity=$currentActivity |