itzhaokun

Results 3 issues of itzhaokun

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.view.View.getTag(int)' on a null object reference at com.xuezj.cardbanner.view.CardView.getCurrentItem(CardView.java:160) at com.xuezj.cardbanner.CardBanner$2.run(CardBanner.java:195) at com.xuezj.cardbanner.i$c.run(WeakHandler.java:205) at android.os.Handler.handleCallback(Handler.java:809) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:166) at android.app.ActivityThread.main(ActivityThread.java:7555) at java.lang.reflect.Method.invoke(Native Method)...

怎么设置图片的scaleType

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' on a null object reference at com.xuezj.cardbanner.view.CardView.findViewAtCenter(CardView.java:163) at com.xuezj.cardbanner.view.CardView.onLayout(CardView.java:67)