trinea / android-demo Goto Github PK
View Code? Open in Web Editor NEWAndroid common lib demo, include ImageCache, HttpCache, DropDownListView, DownloadManager, install apk silent and so on, you can find description
Home Page: https://codekk.com
Android common lib demo, include ImageCache, HttpCache, DropDownListView, DownloadManager, install apk silent and so on, you can find description
Home Page: https://codekk.com
调用addView(view, position)会报异常,我改为addView(view)就没事了
test
在使用下拉刷新及滚动到底部加载更多的ListView的时候,项目中只能包括一个包,不能在项目包含多个包的时候使用,否则会提示:
listViewAttr:isAutoLoadOnBottom="true"
listViewAttr:isDropDownStyle="true"
listViewAttr:isOnBottomStyle="true"
这些属性不存在。
viewPager.setAdapter(new ImagePagerAdapter(context, imageIdList).setInfiniteLoop(true));其中ImagePagerAdapter显示红色错误
I have used the code of RecyclingPagerAdapter from android-demo/src/com/jakewharton/salvage/RecyclingPagerAdapter.java and RecyleBin from android-demo/src/com/jakewharton/salvage/RecycleBin.java but when I try to see the last page from first page before all the pages have been cycled through the app crashes.
07-26 19:12:18.151: E/AndroidRuntime(9545): FATAL EXCEPTION: main
07-26 19:12:18.151: E/AndroidRuntime(9545): Process: cn.trinea.android.demo, PID: 9545
07-26 19:12:18.151: E/AndroidRuntime(9545): java.lang.NoClassDefFoundError: Failed resolution of: Lcn/trinea/android/demo/ViewPagerDemo;
07-26 19:12:18.151: E/AndroidRuntime(9545): at cn.trinea.android.demo.utils.AppUtils.getText(AppUtils.java:106)
07-26 19:12:18.151: E/AndroidRuntime(9545): at cn.trinea.android.demo.utils.AppUtils.initTrineaInfo(AppUtils.java:70)
07-26 19:12:18.151: E/AndroidRuntime(9545): at cn.trinea.android.demo.utils.AppUtils.init(AppUtils.java:38)
07-26 19:12:18.151: E/AndroidRuntime(9545): at cn.trinea.android.demo.BaseActivity.onCreate(BaseActivity.java:26)
07-26 19:12:18.151: E/AndroidRuntime(9545): at cn.trinea.android.demo.MainActivity.onCreate(MainActivity.java:32)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.app.Activity.performCreate(Activity.java:6904)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.app.ActivityThread.access$1100(ActivityThread.java:229)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.os.Handler.dispatchMessage(Handler.java:102)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.os.Looper.loop(Looper.java:148)
07-26 19:12:18.151: E/AndroidRuntime(9545): at android.app.ActivityThread.main(ActivityThread.java:7325)
07-26 19:12:18.151: E/AndroidRuntime(9545): at java.lang.reflect.Method.invoke(Native Method)
07-26 19:12:18.151: E/AndroidRuntime(9545): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
07-26 19:12:18.151: E/AndroidRuntime(9545): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
07-26 19:12:18.151: E/AndroidRuntime(9545): Caused by: java.lang.ClassNotFoundException: Didn't find class "cn.trinea.android.demo.ViewPagerDemo" on path: DexPathList[[zip file "/data/app/cn.trinea.android.demo-2/base.apk"],nativeLibraryDirectories=[/data/app/cn.trinea.android.demo-2/lib/arm64, /vendor/lib64, /system/lib64]]
07-26 19:12:18.151: E/AndroidRuntime(9545): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
07-26 19:12:18.151: E/AndroidRuntime(9545): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
07-26 19:12:18.151: E/AndroidRuntime(9545): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
07-26 19:12:18.151: E/AndroidRuntime(9545): ... 17 more
07-26 19:12:18.151: E/AndroidRuntime(9545): Suppressed: java.lang.NoClassDefFoundError: cn.trinea.android.demo.ViewPagerDemo
07-26 19:12:18.151: E/AndroidRuntime(9545): at dalvik.system.DexFile.defineClassNative(Native Method)
07-26 19:12:18.151: E/AndroidRuntime(9545): at dalvik.system.DexFile.defineClass(DexFile.java:226)
07-26 19:12:18.151: E/AndroidRuntime(9545): at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
07-26 19:12:18.151: E/AndroidRuntime(9545): at dalvik.system.DexPathList.findClass(DexPathList.java:338)
07-26 19:12:18.151: E/AndroidRuntime(9545): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
07-26 19:12:18.151: E/AndroidRuntime(9545): ... 19 more
07-26 19:12:18.151: E/AndroidRuntime(9545): Suppressed: java.lang.ClassNotFoundException: cn.trinea.android.demo.ViewPagerDemo
07-26 19:12:18.151: E/AndroidRuntime(9545): at java.lang.Class.classForName(Native Method)
07-26 19:12:18.151: E/AndroidRuntime(9545): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
07-26 19:12:18.151: E/AndroidRuntime(9545): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
07-26 19:12:18.151: E/AndroidRuntime(9545): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
07-26 19:12:18.151: E/AndroidRuntime(9545): ... 18 more
07-26 19:12:18.151: E/AndroidRuntime(9545): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
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.