| 版本 | 作者 | 日期 |
|---|---|---|
| 1.0 | 邵彬 | 2015-09-10 |
[TOC]
| package com.lody.virtual.helper; | |
| import android.os.Build; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.concurrent.Executor; |
| android { | |
| lintOptions { | |
| checkReleaseBuilds false | |
| abortOnError false | |
| disable 'GoogleAppIndexingWarning', | |
| 'IconMissingDensityFolder', | |
| 'IconDensities', | |
| 'RtlHardcoded', | |
| 'RtlSymmetry', |
| alias fix_sdk='echo "sdk.dir=`echo $ANDROID_SDK`" > local.properties; echo ndk.dir=`echo $ANDROID_NDK` >> local.properties' |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. | |
| To use the support version of these attributes, remove the android namespace. | |
| For instance, "android:colorControlNormal" becomes "colorControlNormal". | |
| These attributes will be propagated to their corresponding attributes within the android namespace | |
| for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- |
| <?xml version="1.0" encoding="utf-8"?> | |
| <RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/place_autocomplete_prediction_height" | |
| xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <include android:layout_gravity="center" android:visibility="invisible" android:layout_width="@dimen/place_autocomplete_progress_size" android:layout_height="@dimen/place_autocomplete_progress_size" android:layout_marginLeft="@dimen/place_autocomplete_progress_horizontal_margin" android:layout_marginRight="@dimen/place_autocomplete_progress_horizontal_margin" android:layout_alignParentLeft="true" android:layout_centerVertical="true" layout="@layout/place_autocomplete_progress" /> | |
| <View android:id="@id/place_autocomplete_separator" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_centerVertical="true" /> | |
| <TextView android:textSize="@dimen/place_autocomplete_prediction_primary_text" android:textColor="@color/place_autocomple |
| pixelToPoint = function(point, zoom, center, bounds) { | |
| // 像素到坐标 | |
| if (!point) { | |
| return | |
| } | |
| var zoomUnits = getZoomUnits(zoom); | |
| var mercatorLng = center.lng + zoomUnits * (point.x - bounds.width / 2); | |
| var mercatorLat = center.lat - zoomUnits * (point.y - bounds.height / 2); | |
| var mercatorLngLat = {lng: mercatorLng, lat: mercatorLat}; | |
| return mercatorToLngLat(mercatorLngLat) |
| # Built application files | |
| /*/build/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties | |
| # Gradle generated files |
| #!/usr/bin/env bash | |
| TCPDUMP_PID="" | |
| SOCAT_PID="" | |
| OUTPUT_FILE="" | |
| PORT=12345 | |
| TMPDIR="." | |
| TCPDUMP_PATH="/data/local/tmp/xbin/tcpdump" | |
| NETCAT_PATH="/data/local/tmp/nc" | |
| HOST_INTERFACE="en0" |
| { | |
| "id": 1, | |
| "version": 1, | |
| "title": "二手车信息采集", | |
| "entries": [ | |
| { | |
| "key": "email", | |
| "name": "电子邮件", | |
| "optional": false, | |
| "widget": "edittext", |