Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator

instead

Bug: 35218222
Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
This commit is contained in:
Sunny Goyal
2017-02-13 12:13:43 -08:00
parent eb04b84153
commit 9e76f682f3
10 changed files with 119 additions and 329 deletions
@@ -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());