crash - material design android 5.0

前端 未结 5 1766
难免孤独
难免孤独 2020-12-29 23:40

I have a big problem with my app. It crashes and I don\'t know why.

In my app I have a Activity with a listview and a customlistviewa

5条回答
  •  清歌不尽
    2020-12-30 00:09

    As I still need to support everything down to Android version 9, neither android:transitionGroup="true" nor using TransitionListener would work for me. I could prevent the problem by disabling hardware acceleration on Activity level:

    
    

    Disabling it on a view level didn't work for me, but might work for others:

    myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    

提交回复
热议问题