- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
try {
Method m = this.getClass().getMethod("setLayerType", int.class, Paint.class);
if (m != null) {
m.invoke(this, View.LAYER_TYPE_SOFTWARE, (Object)null);
}
} catch (NoSuchMethodException e) {
} catch (IllegalAccessException e) {
} catch (InvocationTargetException e) {
}
что-что? класс примитива?
То есть int.class != Integer.class, но int.class == Integer.TYPE.