Getting Width and Height of a View (Java)

Hello!,
I’ve posted two other questions on here which weren’t answered and I’ve been tearing my hair out trying to get this to work. Basically, I am making an android program which involves a custom view and I need the height and width of it so I can figure out where to place drawn items on the screen (making a game). I need to know the height and width so I know how large to draw tiles and characters as well as where to place them so they don’t overlap in the game. I’ve tried using getHeight(), getWidth(), getMeasuredHeight(), getMeasuredWidth(), and finding the height and width in the OnMeasure() method. They keep returning zero and onMeasure never gets called for whatever reason.
If somebody could find a tutorial that’ll work for me that would be awesome.
Thanks,
SoupHead