Compare commits
No commits in common. 'master' and 'xiaojinchi_branch' have entirely different histories.
master
...
xiaojinchi
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetDropDown">
|
||||
<targetSelectedWithDropDown>
|
||||
<Target>
|
||||
<type value="QUICK_BOOT_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="VIRTUAL_DEVICE_PATH" />
|
||||
<value value="C:\Users\87334\.android\avd\Pixel_2_API_28.avd" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</targetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2022-10-13T00:16:46.151575400Z" />
|
||||
</component>
|
||||
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,33 +0,0 @@
|
||||
package net.micode.notes.ui;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.TypedValue;
|
||||
|
||||
/**
|
||||
* 工具类转换
|
||||
*/
|
||||
public class DimenUtils {
|
||||
|
||||
private static final Resources sResource = Resources.getSystem();
|
||||
|
||||
public static float dp2px(float dp) {
|
||||
DisplayMetrics dm = sResource.getDisplayMetrics();
|
||||
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, dm);
|
||||
}
|
||||
|
||||
public static int dp2pxInt(float dp) {
|
||||
return (int) dp2px( dp);
|
||||
}
|
||||
|
||||
public static float sp2px(float sp) {
|
||||
DisplayMetrics dm = sResource.getDisplayMetrics();
|
||||
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, sp, dm);
|
||||
}
|
||||
|
||||
public static int sp2pxInt(float sp) {
|
||||
return (int) sp2px(sp);
|
||||
}
|
||||
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue