Java Code Examples for android.animation.LayoutTransition#disableTransitionType()

The following examples show how to use android.animation.LayoutTransition#disableTransitionType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Workspace.java    From TurboLauncher with Apache License 2.0 7 votes vote down vote up
private void setupLayoutTransition() {
    // We want to show layout transitions when pages are deleted, to close the gap.
    mLayoutTransition = new LayoutTransition();
    mLayoutTransition.enableTransitionType(LayoutTransition.DISAPPEARING);
    mLayoutTransition.enableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
    mLayoutTransition.disableTransitionType(LayoutTransition.APPEARING);
    mLayoutTransition.disableTransitionType(LayoutTransition.CHANGE_APPEARING);
    setLayoutTransition(mLayoutTransition);
}
 
Example 2
Source File: JustBar.java    From JustBar with Apache License 2.0 5 votes vote down vote up
private void init() {
    LayoutTransition lt = new LayoutTransition();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
        lt.disableTransitionType(LayoutTransition.DISAPPEARING);
    }
    setLayoutTransition(lt);


    setOrientation(HORIZONTAL);
    setGravity(Gravity.CENTER_VERTICAL);

}
 
Example 3
Source File: Workspace.java    From LaunchEnr with GNU General Public License v3.0 5 votes vote down vote up
private void setupLayoutTransition() {
    // We want to show layout transitions when pages are deleted, to close the gap.
    mLayoutTransition = new LayoutTransition();
    mLayoutTransition.enableTransitionType(LayoutTransition.DISAPPEARING);
    mLayoutTransition.enableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
    mLayoutTransition.disableTransitionType(LayoutTransition.APPEARING);
    mLayoutTransition.disableTransitionType(LayoutTransition.CHANGE_APPEARING);
    setLayoutTransition(mLayoutTransition);
}
 
Example 4
Source File: LayoutUtils.java    From FastLayout with Apache License 2.0 5 votes vote down vote up
public static LayoutTransition getDisabledLayoutTransition() {
    if (Build.VERSION.SDK_INT > 10) {
        LayoutTransition layoutTransition = new LayoutTransition();
        if (Build.VERSION.SDK_INT >= 17) {
            layoutTransition.disableTransitionType(LayoutTransition.DISAPPEARING);
        }
        return layoutTransition;
    }
    return null;
}
 
Example 5
Source File: PageIndicator.java    From Trebuchet with GNU General Public License v3.0 5 votes vote down vote up
private void disableLayoutTransitions() {
    LayoutTransition transition = getLayoutTransition();
    transition.disableTransitionType(LayoutTransition.APPEARING);
    transition.disableTransitionType(LayoutTransition.DISAPPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_APPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
}
 
Example 6
Source File: Workspace.java    From Trebuchet with GNU General Public License v3.0 5 votes vote down vote up
private void setupLayoutTransition() {
    // We want to show layout transitions when pages are deleted, to close the gap.
    mLayoutTransition = new LayoutTransition();
    mLayoutTransition.enableTransitionType(LayoutTransition.DISAPPEARING);
    mLayoutTransition.enableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
    mLayoutTransition.disableTransitionType(LayoutTransition.APPEARING);
    mLayoutTransition.disableTransitionType(LayoutTransition.CHANGE_APPEARING);
    setLayoutTransition(mLayoutTransition);
}
 
Example 7
Source File: PageIndicator.java    From TurboLauncher with Apache License 2.0 5 votes vote down vote up
private void disableLayoutTransitions() {
    LayoutTransition transition = getLayoutTransition();
    transition.disableTransitionType(LayoutTransition.APPEARING);
    transition.disableTransitionType(LayoutTransition.DISAPPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_APPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
}
 
Example 8
Source File: PageIndicator.java    From LB-Launcher with Apache License 2.0 5 votes vote down vote up
private void disableLayoutTransitions() {
    LayoutTransition transition = getLayoutTransition();
    transition.disableTransitionType(LayoutTransition.APPEARING);
    transition.disableTransitionType(LayoutTransition.DISAPPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_APPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
}