Android

https://code.google.com/archive/p/android-query/

JVM (Java Virtual Machine), to run Java bytecode.
JRE (Java Runtime Environment) = JVM + Java Core Library.
JDK (Java Development Kit) = JRE + Java Compiler.

Java SE (Java Standard Edition) = JDK
Java EE (Java Enterprise Edition)
Java ME (Java Micro Edition): Mobile device, TV, etc.

The conversion of dp units to screen pixels is simple: px = dp * (dpi / 160). You should always use dp units when defining your application’s UI, to ensure proper display of your UI on screens with different densities.
public static int px_from_dp(int dp) {
return (int) (dp * Resources.getSystem().getDisplayMetrics().density);
}
public static int dp_from_px(int px) {
return (int) (px / Resources.getSystem().getDisplayMetrics().density);
}

发表评论