新增和刪除動畫Add and delete animations

清單動畫可讓您從集合 (如相簿或搜尋結果清單) 中插入或移除單個或多個項目。List animations let you insert or remove single or multiple items from a collection, such as a photo album or a list of search results.

重要 API : AddDeleteThemeTransition 類別Important APIs : AddDeleteThemeTransition class

可行與禁止事項Do's and don'ts

  • 使用清單動畫,將單一的新項目加入到現有的一組項目中。Use list animations to add a single new item to an existing set of items. 例如,收到新的電子郵件時或在現有的一組相片中匯入新相片時予以使用。For example, use them when a new email arrives or when a new photo is imported into an existing set.
  • 使用清單動畫,一次將數個項目加入到一組項目中。Use list animations to add several items to a set at one time. 例如,在您將一組新相片匯入到現有集合時予以使用。For example, use them when you import a new set of photos to an existing collection. 新增或刪除多個項目應該要同時進行,個別物件的動作之間不應有任何延遲。The addition or deletion of multiple items should happen at the same time, with no delay between the action on the individual objects.
  • 新增和刪除清單動畫必須同時搭配使用。Use add and delete list animations as a pair. 當您使用其中一個動畫,就要在相反動作時使用對應的動畫。Whenever you use one of these animations, use the corresponding animation for the opposite action.
  • 對可以一次新增或刪除一個元素或一組元素的項目清單使用清單動畫。Use list animations with a list of items to which you can add or delete one element or group of elements at once.
  • 請勿使用清單動畫來顯示或移除容器。Don't use list animations to display or remove a container. 這些動畫適合已經顯示之集合或一組項目的成員。These animations are for members of a collection or set that is already being displayed. 使用快顯動畫,在 app 表面顯示或隱藏暫時容器。Use pop-up animations to show or hide a transient container on top of the app surface. 使用內容轉換動畫,顯示或取代屬於應用程式表面的容器。Use content transition animations to display or replace a container that is part of the app surface.
  • 不要在整個項目集合上使用清單動畫。Don't use list animations on an entire set of items. 使用內容轉換動畫,新增或移除容器內的整個集合。Use the content transition animations to add or remove an entire collection within your container.