I am really struggling with trying to handle the pixel density of screens. How do I make my application look the same on all devices? I thought the answer might be changing the units from dp to px:
public static int dpToPx(int dp) {
return (int)(dp / Resources.getSystem().getDisplayMetrics().density);
}
But this didn't seem to work either and I can't seem to find an answer on how to handle this.