I inflate my custom-classed-layout but I can't access findViewById
on this
inside the constructor because the fields don't exist yet.
I can't use onLayout
because onLayout
is called whenever children are added/removed so my code runs multiple times when I only want it to run once.
I tried onLayoutFinished
, but that doesn't always work.
I would like to leverage something like a onInitialLayoutFinished
which of course isn't a real system function. What should I be using here?