stormzhang / 9gag Goto Github PK
View Code? Open in Web Editor NEWAndroid unofficial REST Client of 9GAG.
Home Page: http://stormzhang.com
Android unofficial REST Client of 9GAG.
Home Page: http://stormzhang.com
Great App!
How about a GIF player?
And the option to share a link and reading comments?
这样阅读起来确实很优雅,蛋不会是手动对齐的吧?
ext {
android = [compileSdkVersion: 23,
buildToolsVersion: "23.0.2",
applicationId : "me.storm.ninegag",
minSdkVersion : 14,
targetSdkVersion : 22,
versionCode : 2,
versionName : "1.1.0"]
dependencies = ["support-v4" : 'com.android.support:support-v4:23.1.1',
"appcompat-v7" : 'com.android.support:appcompat-v7:23.1.1',
"design" : 'com.android.support:design:23.1.1',
"cardview-v7" : 'com.android.support:cardview-v7:23.1.1',
"recyclerview-v7" : 'com.android.support:recyclerview-v7:23.1.1',
"multidex" : "com.android.support:multidex:1.0.+",
"butterknife" : 'com.jakewharton:butterknife:7.0.1',
"volley" : 'com.mcxiaoke.volley:library:1.0.19',
"okhttp" : 'com.squareup.okhttp:okhttp:2.7.0',
"okhttp-urlconnection" : 'com.squareup.okhttp:okhttp-urlconnection:2.7.0',
"leakcanary" : 'com.squareup.leakcanary:leakcanary-android:1.3.1',
"glide" : 'com.github.bumptech.glide:glide:3.6.1',
"glide-okhttp-integration" : 'com.github.bumptech.glide:okhttp-integration:1.3.1',
"foldable-layout" : 'com.alexvasilkov:foldable-layout:1.0.1',
"etsy-grid" : 'com.etsy.android.grid:library:1.0.5']
}
作者你好,我最近也在学习ContentProvider+LoaderManager+CursorAdapter来完成ListView的数据加载,但是我发现,当我insert一条记录到DB时,ListView的内容并没有随之更新,只有我强制进行一遍新的query,或者RestartLoaderManager后,ListView的数据才会更新。已经尝试过notifiedDataSetChanged等方法,均不管用。但是我在你的9GAG这个app里边并没有找到相应的更新代码,请问你是怎么做到这个更新的呢?
下载项目后,Android Studio一直Building ,下载作者的demo.apk后安装上,提示 loading failed ,小米note手机,换个手机也是不行
你好,我也是android开发爱好者,不过我更喜欢IDEA里面去开发这个。在gradle构建过程中,我的服务端用spring 开发,传统的webapp但是不能把它集成于一起开发的过程中。
APP 被卡在构建中
我的java版本是1.8的
从网上搜了解决办法好像都是失效的
解决方法:
删掉最外层的build.gradle中的android
android {
compileSdkVersion 19
buildToolsVersion '21.1.1'
}
下载最新的android stuido,尝试导入这个项目但是总是报错 :<
新建android项目编译、运行正常。。
URL地址无法正常访问,不知道是换了地址还是服务器出问题了
where is file "config.gradle" ? 0.0
storm你好,鄙人最近也在学习这个项目,发现FeedsAdapter.java和ImageViewActivity.java中分别用了Volley和UIL的ImageLoader从网络上下载图片数据,想问一下这两个ImageLoader之间的区别,加载图片时的特点?分别在哪些场合比较适合使用?
另外还有一个不是很明白的地方,在FeedsDataHelper.java中deleteAll()为何没有用bulkInsert(List feeds)方法和query(long id)方法的处理方式(调用ContentProvider的对应方法),而是直接在deleteAll中直接获取了SQLiteDatabase,通过SQLiteDatabase对象来操作(删除)数据?
Just loading failed
https://github.com/stormzhang/9GAG/blob/master/app/src/main/java/me/storm/ninegag/model/Feed.java
中
private static final HashMap<String, Feed> CACHE = new HashMap<String, Feed>();
这个逻辑中,
只有put和get,没有remove操作,而且是强引用,如果项目中存在过多的这种Model,会导致内存溢出吧,是否改为WeakReferance会比较好呢?
build文件应该加上这句,否者进行lint检查,build通不过
android {
lintOptions {
abortOnError false
}
}
是毛玻璃效果的算法影响?
使用DrawerLayout可以正常显示,但是如果吧BaseFoldingLayout放到slidingmenu中,BaseFoldingLayout在绘制折叠效果时,会有偏移的现象,这个怎么解决?
stormzhang,打扰了,当我选择JavaVersion为VERSION_1_8,build failed,
报错如下:com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version。
而JavaVersion若为VERSION_1_7则是可以正常生成APK的;怎样才可以支持jdk1.8呢?
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.