notifyItemInserted不显示动画

时间:2016-08-18 21:16:32

标签: android

似乎notifyItemInserted()没有显示默认的recycleview动画。这是我的代码:

typedef struct cpu_8086_s cpu_t;

struct cpu_8086_s
{
    struct
    {
        union
        {
            uint16_t ax;
            struct
            {
                uint8_t al;
                uint8_t ah;
            };
        };
        union
        {
            uint16_t cx;
            struct
            {
                uint8_t cl;
                uint8_t ch;
            };
        };
        union
        {
            uint16_t dx;
            struct
            {
                uint8_t dl;
                uint8_t dh;
            };
        };
        union
        {
            uint16_t bx;
            struct
            {
                uint8_t bl;
                uint8_t bh;
            };
        };
        uint16_t sp;
        uint16_t bp;
        uint16_t si;
        uint16_t di;
    };
    struct
    {
        uint16_t es;
        uint16_t cs;
        uint16_t ss;
        uint16_t ds;
    };
    uint16_t ip;
    union
    {
        uint16_t flags;
        struct
        {
            uint8_t c: 1;
            uint8_t  : 1;
            uint8_t p: 1;
            uint8_t  : 1;
            uint8_t a: 1;
            uint8_t  : 1;
            uint8_t z: 1;
            uint8_t s: 1;
            uint8_t t: 1;
            uint8_t i: 1;
            uint8_t d: 1;
            uint8_t o: 1;
        };
    };
};

我在这里缺少什么?

提前致谢。

1 个答案:

答案 0 :(得分:1)

删除此行mRecyclerView.setHasFixedSize(true);