App crashing when setting new content view

后端 未结 3 1882
误落风尘
误落风尘 2021-01-24 08:26

Edit:

It seems my button styles are causing the issue.

Edit Code

buttonL.setOnTouchListener(new View.OnTouchListener() {

        public boolean          


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 09:29

    I tried your code .It was working fine.I think issue is because of out of memory.Issue is with image resource ,try to set image in compressed format to avoid memory leakage.

提交回复
热议问题