file
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
public class RequestCode { | |
private static final AtomicInteger seed = new AtomicInteger(); | |
public static int get() { | |
return seed.incrementAndGet(); | |
} | |
} |
import android.os.Build; | |
import android.support.v4.view.ViewCompat; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
public class ScaleInTransformer implements ViewPager.PageTransformer { | |
@Override | |
public void transformPage(View view, float position) { | |
float scale = 0.5f; |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
/** | |
* Created by twiceYuan on 10/8/15. | |
* | |
* 因为 Dialog 需要作为 Activity 作为 Context,所以在服务中如果需要弹出对话框就需要该界面支持 | |
*/ | |
public class DialogContainerActivity extends Activity { |
file
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<!-- Generated by RHY @will_awoke --> | |
<module name="Checker"> | |
<property name="charset" value="UTF-8"/> | |
<property name="severity" value="warning"/> |
-assumenosideeffects class android.util.Log { | |
public static boolean isLoggable(java.lang.String, int); | |
public static int v(...); | |
public static int i(...); | |
public static int w(...); | |
public static int d(...); | |
public static int e(...); | |
} |
设备已经 root
/data/local
cd /data/local && ./busybox
看下是否正常,正常的话,现在使用 busybox vi
是可以使用 vi 编辑器了