setOnBeforeLayoutListener