Slide 24
Slide 24 text
ͣΕΔͷͰௐ
Fragment fragment = activityRule.getActivity()
.getFragmentManager()
.findFragmentByTag(fragmentTag);
if (fragment != null) {
View view = ((DialogFragment) fragment).getDialog()
.getWindow()
.getDecorView()
.getRootView();
int[] loc = new int[2];
view.getLocationOnScreen(loc);
canvas.translate(loc[0], loc[1]);
view.draw(canvas);