Popalay / Tutors

A simple way to show the user interface tutorials
Apache License 2.0
82 stars 19 forks source link

Bug with a "Text" position #9

Closed raspberry-jenshen closed 7 years ago

raspberry-jenshen commented 7 years ago

When the "tutors" is starting at the first time, you can see a bug with a wrong "Text" position. It's because of view lifecycle :)

You can fix it, just do your "Positioning logic" in the OnLayoutChanged method. For example: @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); moveText(!inTop()); }