johnsonhou / imagereview Goto Github PK
View Code? Open in Web Editor NEW仿微信图片详情页面,可下拉关闭页面
仿微信图片详情页面,可下拉关闭页面
长按住再下滑,会出现图片不移动不缩小,又是下滑会没触发事件,需要再下滑一下
图片下拉关闭,应去掉列表刷新,就不会造成闪屏、卡顿了
11-15 14:45:52.277 5080-5080/com.chnsys.szyfy E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.chnsys.szyfy, PID: 5080
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.chnsys.szyfy/com.jchou.imagereview.ui.ImagePagerActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3194)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3302)
at android.app.ActivityThread.-wrap12(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1891)
at android.os.Handler.dispatchMessage(Handler.java:108)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.support.v7.app.AppCompatDelegateImplV9.createSubDecor(AppCompatDelegateImplV9.java:354)
at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:323)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at com.jchou.imagereview.ui.ImagePagerActivity.onCreate(ImagePagerActivity.java:73)
at android.app.Activity.performCreate(Activity.java:7372)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
代码:
ImagePagerActivity.startImagePage(AlbumSelectActivity.this, urlList, pos, gridView.getChildAt(pos));
我的项目设置为没有主题NoTitle,运行报错!楼主帮我看看什么原因?
点击一张图片进入详情页先往左划一张再往右划一张后第二次滑动的这张图片下滑的时候不会缩小
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.