當前位置: 首頁>>代碼示例>>Java>>正文


Java LayoutTransition.disableTransitionType方法代碼示例

本文整理匯總了Java中android.animation.LayoutTransition.disableTransitionType方法的典型用法代碼示例。如果您正苦於以下問題:Java LayoutTransition.disableTransitionType方法的具體用法?Java LayoutTransition.disableTransitionType怎麽用?Java LayoutTransition.disableTransitionType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.animation.LayoutTransition的用法示例。


在下文中一共展示了LayoutTransition.disableTransitionType方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setupLayoutTransition

import android.animation.LayoutTransition; //導入方法依賴的package包/類
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);
}
 
開發者ID:RunasSudo,項目名稱:FLauncher,代碼行數:10,代碼來源:Workspace.java

示例2: setLayoutTransition

import android.animation.LayoutTransition; //導入方法依賴的package包/類
private void setLayoutTransition(ViewGroup viewGroup) {
    if (Build.VERSION.SDK_INT >= 16) {
        // 14+ will crash when we remove child, because we cannot disable APPEARING & DISAPPEARING
        // it's a big joke
        // TODO: work around it
        LayoutTransition lt = new LayoutTransition();
        if (Build.VERSION.SDK_INT >= 16) {
            lt.disableTransitionType(LayoutTransition.APPEARING);
            lt.enableTransitionType(LayoutTransition.CHANGING);
            lt.disableTransitionType(LayoutTransition.DISAPPEARING);
            lt.enableTransitionType(LayoutTransition.CHANGE_APPEARING);
            lt.enableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
        }
        viewGroup.setLayoutTransition(lt);
    }
}
 
開發者ID:kunka,項目名稱:DragAndDropBTWLayouts,代碼行數:17,代碼來源:DraggableLinearLayoutTouchListener.java

示例3: disableLayoutTransitions

import android.animation.LayoutTransition; //導入方法依賴的package包/類
private void disableLayoutTransitions() {
    LayoutTransition transition = getLayoutTransition();
    transition.disableTransitionType(LayoutTransition.APPEARING);
    transition.disableTransitionType(LayoutTransition.DISAPPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_APPEARING);
    transition.disableTransitionType(LayoutTransition.CHANGE_DISAPPEARING);
}
 
開發者ID:Mr-lin930819,項目名稱:SimplOS,代碼行數:8,代碼來源:PageIndicator.java

示例4: getDisabledLayoutTransition

import android.animation.LayoutTransition; //導入方法依賴的package包/類
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;
}
 
開發者ID:FabianTerhorst,項目名稱:FastLayout,代碼行數:11,代碼來源:LayoutUtils.java

示例5: onCreateView

import android.animation.LayoutTransition; //導入方法依賴的package包/類
@Override
protected View onCreateView(ViewGroup parent) {
    preferenceView = super.onCreateView(parent);

    View summary = preferenceView.findViewById(android.R.id.summary);
    if (summary != null) {
        ViewParent summaryParent = summary.getParent();
        if (summaryParent instanceof ViewGroup) {
            final LayoutInflater layoutInflater =
                (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            ViewGroup summaryParent2 = (ViewGroup) summaryParent;
            layoutInflater.inflate(R.layout.clock_layout_preference, summaryParent2, true);

            RelativeLayout previewContainer = (RelativeLayout) summaryParent2.findViewById(R.id.previewContainer);
            clockLayout = (ClockLayout) summaryParent2.findViewById(R.id.clockLayout);
            textViewPurchaseHint = (TextView) summaryParent2.findViewById(R.id.textViewPurchaseHint);

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
                LayoutTransition lt = new LayoutTransition();
                lt.disableTransitionType(LayoutTransition.CHANGING);
                previewContainer.setLayoutTransition(lt);
            }
        }
    }

    return preferenceView;
}
 
開發者ID:firebirdberlin,項目名稱:nightdream,代碼行數:28,代碼來源:ClockLayoutPreviewPreference.java


注:本文中的android.animation.LayoutTransition.disableTransitionType方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。