Scene transition with hero elements throws Layer exceeds max. dimensions supported by the GPU

后端 未结 3 623
名媛妹妹
名媛妹妹 2020-12-04 14:42

I am trying to do a hero transition in Android 5.0 between an image in a ListView to a details page. But for about 50% of my images Android crashes with the exception below.

3条回答
  •  不思量自难忘°
    2020-12-04 15:22

    The root cause of this issue is indicated in your log on this line:

    W/OpenGLRenderer(18137): Layer exceeds max. dimensions supported by the GPU (1080x4628, max=4096x4096).

    Your target activity has a height of 4628 which is greater than the maximum supported by the GPU - 4096.

    The solution, already mentioned in the other answer, is to create a target activity which is shorter. Similar question and answer here: crash - material design android 5.0

提交回复
热议问题