@@ -0,0 +1,1740 @@
+/*%0A * Copyright 2016 Farbod Salamat-Zadeh%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.satsuware.mdutils;%0A%0Aimport android.support.annotation.IntDef;%0A%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0A%0Apublic class MDMotion %7B%0A%0A    @IntDef(%7BMOBILE, TABLET, WEARABLE%7D)%0A    @Retention(RetentionPolicy.SOURCE)%0A    public @interface DeviceType %7B%7D%0A%0A    public static final int MOBILE = 0, TABLET = 1, WEARABLE = 2;%0A%0A%0A    @IntDef(%7BFULL_SCREEN, ENTER, LEAVE%7D)%0A    @Retention(RetentionPolicy.SOURCE)%0A    public @interface TransitionType %7B%7D%0A%0A    public static final int FULL_SCREEN = 375, ENTER = 225, LEAVE = 195;%0A%0A%0A    public static int getTransitionDuration(@TransitionType int transitionType,%0A                                            @DeviceType int deviceType) %7B%0A        int duration = transitionType;%0A        switch (deviceType) %7B%0A            case MOBILE:%0A                duration = transitionType;%0A                break;%0A            case TABLET:%0A                duration = (int) (transitionType * 1.3);%0A                break;%0A            case WEARABLE:%0A                duration = (int) (transitionType * 0.7);%0A                break;%0A        %7D%0A        return duration;%0A    %7D%0A%0A%7D%0A

Add MDMotion.java with transition durations