├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── dictionaries │ └── Jaeger.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── drawable │ │ │ │ ├── ic_logo.png │ │ │ │ ├── ic_play.png │ │ │ │ ├── ic_cloud.png │ │ │ │ ├── ic_pause.png │ │ │ │ ├── ic_poetry.png │ │ │ │ ├── ic_logo_text.png │ │ │ │ ├── ic_media_play.png │ │ │ │ ├── ic_default_cover.png │ │ │ │ ├── ic_arrow_back_white_48dp.png │ │ │ │ └── shape.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── layout │ │ │ │ ├── fragment_listen.xml │ │ │ │ ├── test.xml │ │ │ │ ├── fragment_sujin.xml │ │ │ │ ├── toolbar.xml │ │ │ │ ├── content_main.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── title_bar.xml │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── list_item_article.xml │ │ │ │ └── activity_article_detail.xml │ │ │ └── layout-xlarge │ │ │ │ └── list_item_article.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── jaeger │ │ │ │ └── listenrain │ │ │ │ ├── ListenerRainApplication.java │ │ │ │ ├── base │ │ │ │ ├── BaseFragment.java │ │ │ │ ├── AbstractBaseActivity.java │ │ │ │ ├── AbstractBaseFragment.java │ │ │ │ ├── BaseRecycleAdapter.java │ │ │ │ └── BaseActivity.java │ │ │ │ ├── fragment │ │ │ │ ├── ListenFragment.java │ │ │ │ └── SujinFragment.java │ │ │ │ ├── activity │ │ │ │ ├── SplashActivity.java │ │ │ │ ├── ArticleDetailActivity.java │ │ │ │ └── MainActivity.java │ │ │ │ ├── entity │ │ │ │ └── Article.java │ │ │ │ ├── widget │ │ │ │ ├── CustomScrollView.java │ │ │ │ ├── TitleBar.java │ │ │ │ ├── FooterView.java │ │ │ │ ├── HeaderView.java │ │ │ │ └── RefreshLayout.java │ │ │ │ └── adapter │ │ │ │ └── ArticleItemAdapter.java │ │ └── AndroidManifest.xml │ └── test │ │ └── java │ │ └── com │ │ └── jaeger │ │ └── listeningrain │ │ └── ExampleUnitTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradle.properties ├── ListenRain.iml ├── ListeningRain.iml ├── gradlew.bat └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | ListenRain -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_play.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_cloud.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_pause.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_poetry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_poetry.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_logo_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_logo_text.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_media_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_media_play.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_default_cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_default_cover.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_arrow_back_white_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laobie/ListenRain/HEAD/app/src/main/res/drawable/ic_arrow_back_white_48dp.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/dictionaries/Jaeger.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | listenrain 5 | sujin 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 听雨 3 | Settings 4 | 素锦 5 | 听雨 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Nov 12 09:20:18 CST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 180dp 6 | 16dp 7 | 8 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/test/java/com/jaeger/listeningrain/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.jaeger.listenrain; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #262626 4 | #262626 5 | #ffffff 6 | #262626 7 | #ffffff 8 | #96262626 9 | #50000000 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_listen.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_sujin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/java/com/jaeger/listenrain/ListenerRainApplication.java: -------------------------------------------------------------------------------- 1 | package com.jaeger.listenrain; 2 | 3 | import android.app.Application; 4 | 5 | import com.avos.avoscloud.AVOSCloud; 6 | import com.facebook.drawee.backends.pipeline.Fresco; 7 | 8 | /** 9 | * Created by Jaeger on 15/9/29. 10 | * ListenRain 11 | */ 12 | public class ListenerRainApplication extends Application { 13 | @Override 14 | public void onCreate() { 15 | super.onCreate(); 16 | Fresco.initialize(this); 17 | AVOSCloud.initialize(this, "39GbpyDQQ3aqNOwrrAcVwzNP", "0lz3QXUthcqm8EKUulT6Y9CT"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/com/jaeger/listenrain/base/BaseFragment.java: -------------------------------------------------------------------------------- 1 | package com.jaeger.listenrain.base; 2 | 3 | import android.view.View; 4 | import android.widget.Toast; 5 | 6 | /** 7 | * Created by Jaeger on 15/9/15. 8 | * ListenRain 9 | */ 10 | public class BaseFragment extends AbstractBaseFragment { 11 | @Override 12 | protected int setRootViewResId() { 13 | return 0; 14 | } 15 | 16 | @Override 17 | protected void beforeInitView() { 18 | 19 | } 20 | 21 | @Override 22 | protected void initView() { 23 | 24 | } 25 | 26 | @Override 27 | protected void setViewStatus() { 28 | 29 | } 30 | 31 | @Override 32 | public void onClick(View v) { 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/Jaeger/Developer/Android/SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 23 | 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #### ListenRain/听雨 2 | 3 | 4 | 『听雨』前段时间学习python爬虫练手的一个项目,通过python抓取网站[素锦](http://guo.lu/)上的内容,上传到LeanCloud后端云上,然后再通过app访问服务器获得数据,在客户端上显示文章内容。 5 | 6 | 目前App完成一半多,后面还会继续开发,定位为一个伪文艺的App。:) 7 | 8 |
9 | 10 | 11 | 12 |
13 | 14 | 15 | --- 16 | 技术细节: 17 | 18 | 1. 后端使用[LeanCloud](https://leancloud.cn/)后端服务,省去了服务器端的开发,具体使用细节请访问官网阅读文档。 19 | 2. 图片显示使用的是facebook的开源图片加载库[fresco](https://github.com/facebook/fresco),文档请访问:[英文](http://frescolib.org/)、[中文](http://fresco-cn.org/)。(需要科学上网) 20 | 3. 下拉刷新和上拉加载是自定义的一个刷新控件,具体请查看源码。 21 | 22 | 暂时就这么多,后期开发再更新,python爬虫代码等我整理后再发出来。:) 23 | 24 | --- 25 | 26 | **App下载地址:[http://fir.im/kv64](http://fir.im/kv64)** -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 14 | 15 | 18 | 19 |