版本 | 作者 | 日期 |
---|---|---|
1.0 | 邵彬 | 2015-09-10 |
[TOC]
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", |
/* //device/java/android/android/app/INotificationManager.aidl | |
** | |
** Copyright 2007, The Android Open Source Project | |
** | |
** Licensed under the Apache License, Version 2.0 (the "License"); | |
** you may not use this file except in compliance with the License. | |
** You may obtain a copy of the License at | |
** | |
** http://www.apache.org/licenses/LICENSE-2.0 | |
** |
/* | |
* Copyright (C) 2010 he Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
static String getUnicode(String s) { | |
try { | |
StringBuffer out = new StringBuffer(""); | |
byte[] bytes = s.getBytes("unicode"); | |
for (int i = 0; i < bytes.length - 1; i += 2) { | |
out.append("\\u"); | |
String str = Integer.toHexString(bytes[i + 1] & 0xff); | |
for (int j = str.length(); j < 2; j++) { | |
out.append("0"); |