求源码下载
老师发下源码好吗,看视频感觉代码和您写的一样但点击交换时就报空指针,找不到错在哪
老师发下源码好吗,看视频感觉代码和您写的一样但点击交换时就报空指针,找不到错在哪
2015-02-01
加了还是不行,模拟器运行第一个图能移到第二个图的位置上但它原来的位置变成空白的了,然后就崩了
02-02 16:22:26.235: E/AndroidRuntime(371): FATAL EXCEPTION: main
02-02 16:22:26.235: E/AndroidRuntime(371): java.lang.NullPointerException
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1372)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.View.draw(View.java:6883)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.widget.FrameLayout.draw(FrameLayout.java:357)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.drawChild(ViewGroup.java:1644)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.View.draw(View.java:6883)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.widget.FrameLayout.draw(FrameLayout.java:357)
02-02 16:22:26.235: E/AndroidRuntime(371): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1862)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewRoot.draw(ViewRoot.java:1522)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewRoot.performTraversals(ViewRoot.java:1258)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.os.Handler.dispatchMessage(Handler.java:99)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.os.Looper.loop(Looper.java:123)
02-02 16:22:26.235: E/AndroidRuntime(371): at android.app.ActivityThread.main(ActivityThread.java:3683)
02-02 16:22:26.235: E/AndroidRuntime(371): at java.lang.reflect.Method.invokeNative(Native Method)
02-02 16:22:26.235: E/AndroidRuntime(371): at java.lang.reflect.Method.invoke(Method.java:507)
02-02 16:22:26.235: E/AndroidRuntime(371): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-02 16:22:26.235: E/AndroidRuntime(371): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-02 16:22:26.235: E/AndroidRuntime(371): at dalvik.system.NativeStart.main(Native Method)
举报