MaterialDesignLibrary
MaterialDesignLibrary copied to clipboard
Slider's number indicator appears in a wrong place when activity's theme is alert dialog
Also status bar inexplicably opens.
normaly (no touch):

when touched:

In Utils.java
change the following function:
public static int dpToPx(float dp, Resources resources){
float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, resources.getDisplayMetrics());
return (int) px;
}
into this:
public static int dpToPx(float dp, Resources resources){
float px = dp * (resources.getDisplayMetrics().densityDpi / 160f);
return Math.round(px);
}