25 lines
788 B
Java
25 lines
788 B
Java
package androidx.transition;
|
|
|
|
import android.graphics.Matrix;
|
|
import android.os.Build;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
public class GhostViewUtils {
|
|
private GhostViewUtils() {
|
|
}
|
|
|
|
@Nullable
|
|
public static GhostView addGhost(@NonNull View view, @NonNull ViewGroup viewGroup, @Nullable Matrix matrix) {
|
|
return Build.VERSION.SDK_INT == 28 ? GhostViewPlatform.addGhost(view, viewGroup, matrix) : GhostViewPort.addGhost(view, viewGroup, matrix);
|
|
}
|
|
|
|
public static void removeGhost(View view) {
|
|
if (Build.VERSION.SDK_INT == 28) {
|
|
GhostViewPlatform.removeGhost(view);
|
|
} else {
|
|
GhostViewPort.removeGhost(view);
|
|
}
|
|
}
|
|
}
|