动画Listview项

时间:2018-12-15 17:37:40

标签: android listview animation android-animation

当我在自定义适配器中使用以下内容滚动列表视图时,我正在尝试为列表视图项目设置动画:

InvoiceService.downloadPdf(invoiceId)
        .then(({ data }) => {
          let blob = new Blob([data], {
            type: "application/pdf"
          });
          FileSaver.saveAs(blob, "invoice.pdf");
        })
        .catch(error => {
          throw new Error(error);
        });

它确实有效,但是我不希望动画从我当前正在查看的项目开始。因此,例如,我可以在列表视图中搜索项目,并且每次键入字母时,都会重新创建视图并同时为所有项目播放动画。我可以举的另一个例子是,当我打开列表视图时,动画会立即在我正在观看的每个项目上播放。

是否有办法判断视图中当前哪些项目无效或类似情况?

0 个答案:

没有答案