setPanelState does not work until onMeasure is called
Created by: thedumbtechguy
I used to hide the panel based on some checks in onStart of my activity.
However, I just update and unfortunately, this doesn't work anymore. After about a couple of hours debugging (I thought it was my code I swear), I realized setPanelState won't work if the mSlideableView is null.
Unfortunately, it is until onMeasure is called where it is set using this.mSlideableView = this.getChildAt(1);
This wouldn't be an issue, but there is no proper way of detecting onMeasure without subclassing.
onAttachedToWindow looks promising, but it says it may be called before or after onMeasure.
I can't also find a suitable way to detect when the activity is fully drawn.