michaelye/EasyDialog

EasyDialog in fragment

Closed this issue · 1 comments

I cannot target EasyDialog when it called in onCreate or onViewCreated. How to use it?

Hi,I think maybe in onCreate or onViewCreated method,the views not been inflated,so EasyDialog can NOT get the location,so,just try

view.postDelayed(new Runnable()
{
@OverRide
public void run()
{
//show EasyDialog after 200ms
}
}, 200);

//or

final Handler handler = new Handler();
handler.postDelayed(new Runnable()
{
@OverRide
public void run()
{
//show EasyDialog after 200ms
}
}, 200);