Achieve the next button to trigger the switching function picture appears in a program crash

When you click to a picture, there was a crash program, as shown above is displayed in logcat

Solutions

See the problem in general is the picture is too big, the program could not be read due to Ben collapse, then the solution is to either reduce the picture or make the program compatible with him

Solution

1. This will artificially reduce the image resolution (typically not done) 
2. high-resolution image or in the drawable-xxhdpi can drawable-xxxhdpi

Directly create a folder that is compatible with high resolution can be a pro-active measure.

Guess you like

Origin www.cnblogs.com/wxhnjh/p/11401287.html