EasyDialog in fragment
Closed this issue · 1 comments
iffanmajid commented
I cannot target EasyDialog when it called in onCreate or onViewCreated. How to use it?
michaelye commented
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);