This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void cPostLocation(Context context, int mtype, | |
List<DBLocationVO> location, | |
AsyncHttpResponseHandler responseHandler) { | |
Util.authCilent(context, client); | |
int userId = UserInfo.getInstance().getUserId(context); | |
StringEntity entity = null; | |
try { | |
entity = new StringEntity(JSON.toJSONString(location), "UTF8"); | |
} catch (UnsupportedEncodingException e) { | |
e.printStackTrace(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SpannableStringBuilder strContent=new SpannableStringBuilder(); | |
String one="String one test"; | |
String two="String two test"; | |
String three="String three test"; | |
strContent.append(one); | |
strContent.append(two); | |
strContent.append(three); | |
int start=0; | |
int end=one.length(); | |
strContent.setSpan(new StyleSpan(Typeface.BOLD),start,end, Spannable.SPAN_INCLUSIVE_INCLUSIVE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean isRightfulTXT(File f) { | |
// TODO Auto-generated method stub | |
String regexp="[^\\x00-\\xff]";//双字节字符 | |
Pattern p=Pattern.compile(regexp); | |
try { | |
FileInputStream fis=new FileInputStream(f); | |
//"GBK"编码方式支持双字节字符 | |
InputStreamReader isr=new InputStreamReader(fis, "GBK"); | |
BufferedReader br=new BufferedReader(isr); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package yalantis.com.sidemenu.animation; | |
import android.graphics.Camera; | |
import android.graphics.Matrix; | |
import android.util.Log; | |
import android.view.animation.Animation; | |
import android.view.animation.Transformation; | |
public class FlipAnimation extends Animation { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.examples.customtouch; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.support.v4.view.PagerAdapter; | |
import android.support.v4.view.ViewPager; | |
import android.util.Log; | |
import android.view.Gravity; | |
import android.view.LayoutInflater; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.zll.customview.utils; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.drawable.GradientDrawable; | |
import android.graphics.drawable.StateListDrawable; | |
/** | |
* Created by zhang on 15/5/7. | |
*/ | |
public class ShapeBuilder { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ChoosePopview { | |
private Dialog dialog; | |
private PopupWindow popup; | |
private View mArchor; | |
private PopItemSelector mListener; | |
private String[] titles; | |
public ChoosePopview(Context context,String[] titles) { | |
this.titles = titles; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"cn":"阿富汗","en":"Afghanistan","phone_code":"+93"}, | |
{"cn":"阿尔巴尼亚","en":"Albania","phone_code":"+355"}, | |
{"cn":"阿尔及利亚","en":"Algeria","phone_code":"+213"}, | |
{"cn":"美属萨摩亚","en":"American Samoa","phone_code":"+684"}, | |
{"cn":"安道尔","en":"Andorra","phone_code":"+376"}, | |
{"cn":"安哥拉","en":"Angola","phone_code":"+244"}, | |
{"cn":"安圭拉","en":"Anguilla","phone_code":"+1264"}, | |
{"cn":"南极洲","en":"Antarctica","phone_code":"+672"}, | |
{"cn":"安提瓜和巴布达","en":"Antigua and Barbuda","phone_code":"+1268"}, | |
{"cn":"阿根廷","en":"Argentina","phone_code":"+54"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |