Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
This commit is contained in:
@@ -29,7 +29,16 @@ import java.util.Map;
|
||||
*/
|
||||
public class AnimationLayerSet extends AnimatorListenerAdapter {
|
||||
|
||||
private final HashMap<View, Integer> mViewsToLayerTypeMap = new HashMap<>();
|
||||
private final HashMap<View, Integer> mViewsToLayerTypeMap;
|
||||
|
||||
public AnimationLayerSet() {
|
||||
mViewsToLayerTypeMap = new HashMap<>();
|
||||
}
|
||||
|
||||
public AnimationLayerSet(View v) {
|
||||
mViewsToLayerTypeMap = new HashMap<>(1);
|
||||
addView(v);
|
||||
}
|
||||
|
||||
public void addView(View v) {
|
||||
mViewsToLayerTypeMap.put(v, v.getLayerType());
|
||||
|
||||
Reference in New Issue
Block a user