This file contains 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
@import url('https://fonts.googleapis.com/css?family=Comfortaa'); | |
.alert_text,.alert_secondary-text,.alert_text-accent { | |
font-family: 'Comfortaa' !important; | |
font-weight: bold !important; | |
} |
This file contains 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
import android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.graphics.Point; | |
import android.os.Bundle; | |
import android.view.View; | |
import androidx.annotation.NonNull; | |
import androidx.annotation.Nullable; | |
import androidx.databinding.ViewDataBinding; |
This file contains 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 ScaleUtils { | |
private ScaleUtils() { | |
} | |
public static double linearMap(double source, double sourceMin, double sourceMax, double targetMin, double targetMax) { | |
return ((source - sourceMin) / (sourceMax - sourceMin)) * (targetMax - targetMin) + targetMin; | |
} | |
// public static double linearMap(double source, double sourceMin, double sourceMax, double targetMin, double targetMax) { | |
// return normalizedToScale(normalizeScale(source, sourceMin, sourceMax), targetMin, targetMax); |
This file contains 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
import android.animation.Animator; | |
import android.animation.AnimatorListenerAdapter; | |
import android.animation.ObjectAnimator; | |
import android.animation.ValueAnimator; | |
import android.graphics.Point; | |
import android.os.Build; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.annotation.RequiresApi; | |
import android.support.v4.view.animation.FastOutSlowInInterpolator; |