大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

ViewPager手动创建中的问题

-12 23:29:41.202: E/AndroidRuntime(1850): FATAL EXCEPTION: main

前进网站制作公司哪家好,找成都创新互联公司!从网页设计、网站建设、微信开发、APP开发、响应式网站等网站项目制作,到程序开发,运营维护。成都创新互联公司成立与2013年到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选成都创新互联公司

03-12 23:29:41.202:

E/AndroidRuntime(1850): android.content.res.Resources$NotFoundException: Unable to find resource

ID #0xffffffff

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.content.res.Resources.getResourceName(Resources.java:1775)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.support.v4.app.FragmentManagerImpl.moveToState

(FragmentManager.java:919)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)

03-12

23:29:41.202: E/AndroidRuntime(1850): at android.support.v4.app.BackStackRecord.run

(BackStackRecord.java:682)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)

03-12

23:29:41.202: E/AndroidRuntime(1850): at

android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:472)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)

03-12

23:29:41.202: E/AndroidRuntime(1850): at android.support.v4.view.ViewPager.populate

(ViewPager.java:1068)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.support.v4.view.ViewPager.populate(ViewPager.java:914)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.support.v4.view.ViewPager.onMeasure

(ViewPager.java:1436)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.View.measure(View.java:15848)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

03-

12 23:29:41.202: E/AndroidRuntime(1850): at android.view.View.measure(View.java:15848)

03-

12 23:29:41.202: E/AndroidRuntime(1850): at android.widget.LinearLayout.measureHorizontal

(LinearLayout.java:1034)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.widget.LinearLayout.onMeasure(LinearLayout.java:590)

03-12 23:29:41.202: E/AndroidRuntime

(1850): at android.view.View.measure(View.java:15848)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.view.ViewGroup.measureChildWithMargins

(ViewGroup.java:5012)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

03-12 23:29:41.202: E/AndroidRuntime

(1850): at android.view.View.measure(View.java:15848)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.view.ViewGroup.measureChildWithMargins

(ViewGroup.java:5012)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:302)

03-

12 23:29:41.202: E/AndroidRuntime(1850): at android.view.View.measure(View.java:15848)

03-

12 23:29:41.202: E/AndroidRuntime(1850): at android.view.ViewGroup.measureChildWithMargins

(ViewGroup.java:5012)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

03-12 23:29:41.202: E/AndroidRuntime

(1850): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure

(PhoneWindow.java:2189)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.View.measure(View.java:15848)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1905)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.view.ViewRootImpl.measureHierarchy

(ViewRootImpl.java:1104)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1284)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.view.Choreographer$CallbackRecord.run

(Choreographer.java:749)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.Choreographer.doCallbacks(Choreographer.java:562)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at android.view.Choreographer.doFrame(Choreographer.java:532)

03-

12 23:29:41.202: E/AndroidRuntime(1850): at

android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)

03-12

23:29:41.202: E/AndroidRuntime(1850): at android.os.Handler.handleCallback(Handler.java:730)

03

-12 23:29:41.202: E/AndroidRuntime(1850): at android.os.Handler.dispatchMessage

(Handler.java:92)

03-12 23:29:41.202: E/AndroidRuntime(1850): at android.os.Looper.loop

(Looper.java:137)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

android.app.ActivityThread.main(ActivityThread.java:5103)

03-12 23:29:41.202: E/AndroidRuntime

(1850): at java.lang.reflect.Method.invokeNative(Native Method)

03-12 23:29:41.202:

E/AndroidRuntime(1850): at java.lang.reflect.Method.invoke(Method.java:525)

03-12

23:29:41.202: E/AndroidRuntime(1850): at

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)

03-12

23:29:41.202: E/AndroidRuntime(1850): at com.android.internal.os.ZygoteInit.main

(ZygoteInit.java:553)

03-12 23:29:41.202: E/AndroidRuntime(1850): at

dalvik.system.NativeStart.main(Native Method)

只需要对viewPager添加id值就可以,如viewPager.setId(任意值);


网站标题:ViewPager手动创建中的问题
网站链接:http://dzwzjz.com/article/gjieoo.html
在线咨询
服务热线
服务热线:028-86922220
TOP