horrarndoo / yizhi Goto Github PK
View Code? Open in Web Editor NEWMVP+RxJava2+Retrofit2+Glide+Rxbus,主要实现日报、新闻、干货、影视等资讯,个人项目
License: Apache License 2.0
MVP+RxJava2+Retrofit2+Glide+Rxbus,主要实现日报、新闻、干货、影视等资讯,个人项目
License: Apache License 2.0
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x10c000d
at android.content.res.Resources.getValue(Resources.java:1123)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2309)
at android.content.res.Resources.getAnimation(Resources.java:963)
at android.view.animation.AnimationUtils.loadInterpolator(AnimationUtils.java:270)
at com.zyw.horrarndoo.sdk.anim.AnimUtils.getFastOutSlowInInterpolator(AnimUtils.java:45)
at com.zyw.horrarndoo.sdk.anim.AnimManager.animAlphaAndScaleX(AnimManager.java:34)
at com.zyw.horrarndoo.sdk.anim.ToolbarAnimManager.animNavigationIcon(ToolbarAnimManager.java:66)
at com.zyw.horrarndoo.sdk.anim.ToolbarAnimManager.animIn(ToolbarAnimManager.java:48)
at com.zyw.horrarndoo.yizhi.ui.fragment.home.child.HomeFragment.initUI(HomeFragment.java:142)
at com.zyw.horrarndoo.sdk.base.fragment.BaseCompatFragment.onViewCreated(BaseCompatFragment.java:61)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1314)
闪屏3秒就奔溃了
你是用的mob 的分享,还是自己加的?你是怎么把mob 给抽离出来的?
理论上mvp模式是这么规定的:
作为一种新的模式,MVP与MVC有着一个重大的区别:在MVP中View并不直接使用Model,它们之间的通信是通过Presenter (MVC中的Controller)来进行的,所有的交互都发生在Presenter内部,而在MVC中View会直接从Model中读取数据而不是通过 Controller。
但是在拜读代码的时候发现BaseMVPCompatActivity这个类(这个类是否是view层呢)中,发现有model……(initData方法中通过mPresenter.getModel()获得了model)
按照mvp的设计模式,view层不应该出现model吧……
所以想请教下设计思路……
大神你那些vector图片是怎么生成的?
在首页的<<知乎日报>> 往上滑动,会出现空指针错误, 可能是接口问题,我在你这个地方加上一个非空判断
if (item.getImages() != null && item.getImages().length > 0) {
Glide.with(mContext).load(item.getImages()[0]).crossFade().into((ImageView) helper.getView(R
.id.iv_item_image));
}
您好,我想问下您在app中的再按一次返回键退出这个功能是怎么实现的?我代码也是这样设置的,但是没效果啊,您在别的地方是不是也有相关的设置?
我的MainActivity里面代码是这样的:
// 再点一次退出程序时间设置
private static final long WAIT_TIME = 2000L;
private long TOUCH_TIME = 0;
@Override
public void onBackPressedSupport() {
super.onBackPressedSupport();
if (getFragmentManager().getBackStackEntryCount() > 1) {
//如果当前存在fragment>1,当前fragment出栈
pop();
} else {
//如果已经到root fragment了,2秒内点击2次退出
if (System.currentTimeMillis() - TOUCH_TIME < WAIT_TIME) {
// setIsTransAnim(false);
finish();
} else {
TOUCH_TIME = System.currentTimeMillis();
Toast.makeText(this, "再按一次退出", Toast.LENGTH_SHORT).show();
}
}
}
JNI DETECTED ERROR IN APPLICATION: JNI CallVoidMethodV called with pending exception 'java.lang.IllegalStateException' thrown in void android.os.MessageQueue.nativePollOnce(long, int):-2
01-11 17:17:03.965 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] in call to CallVoidMethodV
01-11 17:17:03.965 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] from void android.os.MessageQueue.nativePollOnce(long, int)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x74d3c8b0 self=0xb8468958
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] | sysTid=29672 nice=-6 cgrp=apps sched=0/0 handle=0xb6faf058
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=1737 stm=126 core=1 HZ=100
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] | stack=0xbe18d000-0xbe18f000 stackSize=8MB
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #00 pc 00004828 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #1 pc 00002ec5 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #2 pc 00244415 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, char const*, art::mirror::ArtMethod*)+68)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #3 pc 002277e3 /system/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits >&) const+394)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #4 pc 000af2ab /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #5 pc 000af9f1 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #6 pc 000b2b6b /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1286)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #7 pc 000ba02f /system/lib/libart.so (art::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+30)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #8 pc 0006028f /system/lib/libandroid_runtime.so (???)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #9 pc 000746dd /system/lib/libandroid_runtime.so (android::NativeDisplayEventReceiver::dispatchVsync(long long, int, unsigned int)+40)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #10 pc 0007495b /system/lib/libandroid_runtime.so (android::NativeDisplayEventReceiver::handleEvent(int, int, void*)+142)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #11 pc 00014037 /system/lib/libutils.so (android::Looper::pollInner(int)+594)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #12 pc 000140f9 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #13 pc 00080405 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] native: #14 pc 000b1e37 /data/dalvik-cache/arm/system@[email protected] (Java_android_os_MessageQueue_nativePollOnce__JI+102)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at android.os.MessageQueue.nativePollOnce(Native method)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at android.os.MessageQueue.next(MessageQueue.java:153)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:131)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at android.app.ActivityThread.main(ActivityThread.java:5696)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at java.lang.reflect.Method.invoke!(Native method)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at java.lang.reflect.Method.invoke(Method.java:372)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
01-11 17:17:03.975 29672-29672/com.devstrongzhao.ttkb A/art: art/runtime/check_jni.cc:65] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
RT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.