├── .gitignore ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── razerdp │ │ └── github │ │ └── com │ │ └── demo │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── assets │ │ └── pics │ ├── java │ │ └── razerdp │ │ │ └── github │ │ │ └── com │ │ │ └── demo │ │ │ ├── AppContext.java │ │ │ ├── DemoActivity.java │ │ │ ├── ForceClickImageView.java │ │ │ ├── ImageLoadManager.java │ │ │ ├── PhotoContentsDemoApp.java │ │ │ ├── RoundedCornersTransformation.java │ │ │ ├── TestServerData.java │ │ │ ├── baseadapter │ │ │ ├── BaseAbsViewAdapter.java │ │ │ ├── BaseAbsViewHolder.java │ │ │ ├── BaseRecyclerViewAdapter.java │ │ │ ├── BaseRecyclerViewHolder.java │ │ │ ├── OnRecyclerViewItemClickListener.java │ │ │ └── OnRecyclerViewLongItemClickListener.java │ │ │ └── utils │ │ │ ├── FileUtil.java │ │ │ ├── RandomUtil.java │ │ │ ├── ToolUtil.java │ │ │ ├── UIHelper.java │ │ │ └── rx │ │ │ ├── DefaultLogThrowableConsumer.java │ │ │ ├── RxCall.java │ │ │ ├── RxCallImpl.java │ │ │ ├── RxHelper.java │ │ │ └── RxTaskCall.java │ └── res │ │ ├── drawable-xhdpi │ │ ├── ic_error.9.png │ │ └── ic_loading.png │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── item_img.xml │ │ ├── item_img_single.xml │ │ └── item_multi_image.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-w820dp │ │ ├── dimens.xml │ │ └── ids.xml │ │ └── values │ │ ├── attrs.xml │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── razerdp │ └── github │ └── com │ └── demo │ └── ExampleUnitTest.java ├── art └── preview.gif ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── lib ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── razerdp │ │ └── github │ │ └── com │ │ └── widget │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── razerdp │ │ │ └── github │ │ │ └── com │ │ │ └── widget │ │ │ ├── PhotoContents.java │ │ │ ├── layoutmanager │ │ │ └── NineGridLayoutManager.java │ │ │ └── util │ │ │ └── SimplePool.java │ └── res │ │ └── values │ │ └── strings.xml │ └── test │ └── java │ └── razerdp │ └── github │ └── com │ └── widget │ └── ExampleUnitTest.java └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | .idea 11 | 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 朋友圈图片容器 2 | 3 | [ ![Download](https://api.bintray.com/packages/razerdp/maven/PhotoContents/images/download.svg) ](https://bintray.com/razerdp/maven/PhotoContents/_latestVersion) 4 | 5 | 6 | 针对AbsListView或者RecyclerView来进行View的二级缓存,采取的是adapter模式以及观察者。 7 | 8 | 实现原理实际上很简单,大致如下: 9 | 10 | 众所周知,RecyclerView或者AbsListview的复用机制都是利用一个数组来缓存view组,在创建View的时候获取出来并传到adapter 11 | 当一个View移出屏幕的时候,它会被放到池里面,在下一个view(viewType相同)时,会取出 12 | 而取出的View实际上childView等是不变的,因此我们可以利用这个机制,在更新时,将所有view都缓存 13 | 然后对比出该view更新前后的不同进行addView 14 | 15 | 又因为我们知道addView/removeView会造成requestLayout从而重新走了一遍measure和layout,所以为了避免这个情况 16 | 我们使用了`attachViewToParent`和`detachAllViewsFromParent`这两个仅针对数组操作的方法来避免这个问题。 17 | 18 | 当然目前来说这个控件还只是一个初步版本,后续如果有时间我会慢慢优化的。 19 | 20 | ps,本控件初衷是为了我的另一个项目[一起撸个朋友圈吧](https://github.com/razerdp/FriendCircle)服务,大部分的更新都会在那里提交,如果您需要获取新的更新信息,可以通过另一个项目获知。 21 | 22 | 23 | # Preview: 24 | ![](https://github.com/razerdp/PhotoContents/blob/master/art/preview.gif) 25 | 26 | # Download [ ![Download](https://api.bintray.com/packages/razerdp/maven/PhotoContents/images/download.svg) ](https://bintray.com/razerdp/maven/PhotoContents/_latestVersion) 27 | 28 | **Step 1.** 29 | 30 | Add the dependency 31 | 32 | ```xml 33 | dependencies { 34 | compile 'com.github.razerdp:PhotoContents:{最新版}' //最新版看上方Jcenter标签 35 | } 36 | ``` 37 | 38 | 39 | ### Update log 40 | 41 | - 2019/12/10 42 | + 增加复用池拦截器,允许自行添加复用池逻辑 43 | - 2019/07/08 44 | + 重构 45 | - 2017/02/20 46 | + 修复点击后点击空白页面响应了之前的点击事件的问题 47 | 48 | 49 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 28 5 | defaultConfig { 6 | applicationId "razerdp.github.com.photocontents" 7 | minSdkVersion 16 8 | targetSdkVersion 28 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | 20 | lintOptions { 21 | abortOnError false 22 | } 23 | } 24 | 25 | dependencies { 26 | implementation fileTree(include: ['*.jar'], dir: 'libs') 27 | androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { 28 | exclude group: 'com.android.support', module: 'support-annotations' 29 | }) 30 | implementation 'com.android.support:appcompat-v7:28.0.0' 31 | testImplementation 'junit:junit:4.12' 32 | implementation('com.jcodecraeer:xrecyclerview:1.5.9') { 33 | exclude group: "android.support" 34 | } 35 | implementation('com.github.bumptech.glide:glide:4.9.0') { 36 | exclude group: "android.support" 37 | exclude group: 'com.android.support', module: 'support-annotations' 38 | 39 | } 40 | implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' 41 | implementation 'io.reactivex.rxjava2:rxjava:2.2.14' 42 | implementation project(':lib') 43 | } 44 | -------------------------------------------------------------------------------- /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 D:\AndroidSDK/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 | -------------------------------------------------------------------------------- /app/src/androidTest/java/razerdp/github/com/demo/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("razerdp.github.com.photocontents", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/assets/pics: -------------------------------------------------------------------------------- 1 | http://pic2016.5442.com:82/2016/0519/27/3.jpg, 2 | http://pic1.win4000.com/wallpaper/2018-07-06/5b3f33ed0a487.jpg, 3 | http://pic1.win4000.com/wallpaper/2018-08-18/5b77d35de4a6f.jpg, 4 | http://uploads.5068.com/allimg/1807/189-1PF41H051.jpg, 5 | http://t.388g.com/uploads/allimg/160719/3-160G9163429.png, 6 | http://www.wendangwang.com/pic/4fa5bacf51865b3fec2eb5f4/10-810-jpg_6-1080-0-0-1080.jpg, 7 | http://pic1.win4000.com/wallpaper/3/540e958f908fb_860_710.jpg, 8 | http://img6.3lian.com/c23/desk4/03/23/d/12.jpg, 9 | http://www.wndhw.com/xiezhen/sheying/images/sy009_1.jpg, 10 | http://pic1.win4000.com/wallpaper/a/59853bc08b4b1.jpg, 11 | http://picture.ik123.com/uploads/allimg/170119/3-1F119102139.jpg, 12 | http://pic1.win4000.com/wallpaper/4/53ab8bc5c7776_860_710.jpg, 13 | http://www.wndhw.com/xiezhen/sheying/images/sy009_5.jpg, 14 | http://img1.cache.netease.com/catchpic/A/A7/A785F8778C960F3471E469FD45DEAAD2.jpg, 15 | http://www.agri35.com/UploadFiles/img_2_3714130013_2494292995_26.jpg, 16 | http://pic1.win4000.com/wallpaper/c/58772d771a87f_860_710.jpg, 17 | http://b-ssl.duitang.com/uploads/item/201803/18/20180318170446_jGF2T.png, 18 | http://pic1.win4000.com/mobile/d/535f14880fec5_200_300.jpg, 19 | http://pic1.win4000.com/wallpaper/1/5736c2c3b9cab.jpg, 20 | http://img1.imgtn.bdimg.com/it/u=894865377,3862153310&fm=27&gp=0.jpg, 21 | http://img2.imgtn.bdimg.com/it/u=1334862205,3423423073&fm=27&gp=0.jpg, 22 | http://img2.imgtn.bdimg.com/it/u=1273808765,1620582767&fm=27&gp=0.jpg, 23 | http://img2.imgtn.bdimg.com/it/u=2773667833,3389439590&fm=27&gp=0.jpg, 24 | http://img2.imgtn.bdimg.com/it/u=1084713745,632040477&fm=27&gp=0.jpg, 25 | http://img0.imgtn.bdimg.com/it/u=2503712933,1799865883&fm=27&gp=0.jpg, 26 | http://img3.imgtn.bdimg.com/it/u=3148152358,3384675052&fm=201&gp=0.jpg, 27 | http://img2.imgtn.bdimg.com/it/u=1464513085,1474821465&fm=201&gp=0.jpg, 28 | http://img1.imgtn.bdimg.com/it/u=3539782722,1873177214&fm=201&gp=0.jpg, 29 | http://pic1.win4000.com/wallpaper/3/540e9598a9776_860_710.jpg, 30 | http://img3.imgtn.bdimg.com/it/u=2916779431,1813375983&fm=27&gp=0.jpg, 31 | http://img3.imgtn.bdimg.com/it/u=2132697397,892514051&fm=27&gp=0.jpg, 32 | http://img0.imgtn.bdimg.com/it/u=1289561342,3495543879&fm=27&gp=0.jpg, 33 | http://img0.imgtn.bdimg.com/it/u=317136290,316910630&fm=27&gp=0.jpg, 34 | http://img0.imgtn.bdimg.com/it/u=3171408313,1477321438&fm=27&gp=0.jpg, 35 | http://img1.imgtn.bdimg.com/it/u=3426310761,1484281636&fm=27&gp=0.jpg, 36 | http://img1.imgtn.bdimg.com/it/u=2968013218,1570686669&fm=15&gp=0.jpg, 37 | http://img1.imgtn.bdimg.com/it/u=4112523867,969351265&fm=27&gp=0.jpg, 38 | http://img0.imgtn.bdimg.com/it/u=3603473784,2011934292&fm=27&gp=0.jpg, 39 | http://img2.imgtn.bdimg.com/it/u=2399410232,716548680&fm=15&gp=0.jpg, 40 | http://img1.imgtn.bdimg.com/it/u=2560794536,793728295&fm=15&gp=0.jpg, 41 | http://img3.imgtn.bdimg.com/it/u=3538228287,3507813977&fm=15&gp=0.jpg, 42 | http://img2.imgtn.bdimg.com/it/u=1291968716,2966267806&fm=27&gp=0.jpg, 43 | http://img0.imgtn.bdimg.com/it/u=1400782578,58311277&fm=27&gp=0.jpg, 44 | http://img2.imgtn.bdimg.com/it/u=2069639788,588370059&fm=27&gp=0.jpg, 45 | http://img2.imgtn.bdimg.com/it/u=3981370471,2097862532&fm=27&gp=0.jpg, 46 | http://img0.imgtn.bdimg.com/it/u=1904420606,3789838365&fm=27&gp=0.jpg, 47 | http://img4.imgtn.bdimg.com/it/u=2834449794,502750765&fm=27&gp=0.jpg, 48 | http://img5.imgtn.bdimg.com/it/u=3034529133,2893778862&fm=26&gp=0.jpg, 49 | http://pic1.win4000.com/wallpaper/2018-07-06/5b3f33ed0a487.jpg, 50 | http://img4.imgtn.bdimg.com/it/u=2828315846,982221038&fm=27&gp=0.jpg, 51 | http://img3.imgtn.bdimg.com/it/u=3580501682,2124534187&fm=27&gp=0.jpg, 52 | http://img4.imgtn.bdimg.com/it/u=2109510720,730221519&fm=27&gp=0.jpg, 53 | http://img2.imgtn.bdimg.com/it/u=582265220,1441429212&fm=27&gp=0.jpg, 54 | http://img3.imgtn.bdimg.com/it/u=1702174741,2780296428&fm=27&gp=0.jpg, 55 | http://img1.imgtn.bdimg.com/it/u=3651472839,2611362103&fm=27&gp=0.jpg, 56 | http://pic1.win4000.com/wallpaper/a/59853bc1f0acc.jpg, 57 | http://img5.imgtn.bdimg.com/it/u=2054822553,4182621396&fm=26&gp=0.jpg, 58 | http://pic1.win4000.com/wallpaper/2018-08-18/5b77d35de4a6f.jpg, 59 | http://img1.imgtn.bdimg.com/it/u=2579523021,67635760&fm=27&gp=0.jpg, 60 | http://img1.imgtn.bdimg.com/it/u=651077335,2060155956&fm=27&gp=0.jpg, 61 | http://img4.imgtn.bdimg.com/it/u=2055866764,3435586011&fm=27&gp=0.jpg, 62 | http://img2.imgtn.bdimg.com/it/u=2014366758,395468389&fm=27&gp=0.jpg, 63 | http://img1.imgtn.bdimg.com/it/u=2154291169,2154932558&fm=27&gp=0.jpg, 64 | http://img0.imgtn.bdimg.com/it/u=1064656863,2666477597&fm=27&gp=0.jpg, 65 | http://img4.imgtn.bdimg.com/it/u=1559199152,1335133478&fm=26&gp=0.jpg, 66 | http://uploads.5068.com/allimg/1807/189-1PF41H051.jpg, 67 | http://img4.imgtn.bdimg.com/it/u=13045202,1943955922&fm=27&gp=0.jpg, 68 | http://img4.imgtn.bdimg.com/it/u=875241127,1415359987&fm=27&gp=0.jpg, 69 | http://img2.imgtn.bdimg.com/it/u=1836622060,472301837&fm=27&gp=0.jpg, 70 | http://img1.imgtn.bdimg.com/it/u=1827164811,4027142176&fm=27&gp=0.jpg, 71 | http://img3.imgtn.bdimg.com/it/u=3102677204,3211409380&fm=27&gp=0.jpg, 72 | http://img1.imgtn.bdimg.com/it/u=388871405,3826730376&fm=27&gp=0.jpg, 73 | http://img2.imgtn.bdimg.com/it/u=4273967815,1350866585&fm=26&gp=0.jpg, 74 | http://img3.duitang.com/uploads/item/201605/16/20160516192755_eQZVf.png, 75 | http://img1.touxiang.cn/uploads/20121012/12-055759_497.jpg, 76 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1840774513,592675349&fm=27&gp=0.jpg, 77 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1329555386,3575948425&fm=27&gp=0.jpg, 78 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3638769371,203572129&fm=27&gp=0.jpg, 79 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3259491734,2894242298&fm=27&gp=0.jpg, 80 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=340526533,2956935035&fm=27&gp=0.jpg, 81 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2367772150,1859021448&fm=27&gp=0.jpg, 82 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1857333708,2580787433&fm=27&gp=0.jpg, 83 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=212110053,3493983355&fm=27&gp=0.jpg, 84 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2002225440,3216295015&fm=27&gp=0.jpg, 85 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1417515514,4191753408&fm=27&gp=0.jpg, 86 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1349082662,3071249603&fm=27&gp=0.jpg, 87 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1914300655,3171571223&fm=27&gp=0.jpg, 88 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=150753351,928969551&fm=27&gp=0.jpg, 89 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4055984295,1696105286&fm=27&gp=0.jpg, 90 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2658352331,1136927674&fm=27&gp=0.jpg, 91 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1273175769,2763505250&fm=27&gp=0.jpg, 92 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1712916136,3318258621&fm=27&gp=0.jpg, 93 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4182099136,3236160640&fm=27&gp=0.jpg, 94 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1331702203,3234893434&fm=27&gp=0.jpg, 95 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2376037436,1385756909&fm=27&gp=0.jpg, 96 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=268362510,3620945684&fm=27&gp=0.jpg, 97 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2750215247,4111203762&fm=27&gp=0.jpg, 98 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2840142606,546013672&fm=27&gp=0.jpg, 99 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1875920017,1219223014&fm=27&gp=0.jpg, 100 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4006096692,3419422198&fm=27&gp=0.jpg, 101 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=715365218,1562073165&fm=27&gp=0.jpg, 102 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3550439242,305125159&fm=27&gp=0.jpg, 103 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2532101888,3057696553&fm=27&gp=0.jpg, 104 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2084655137,406943141&fm=27&gp=0.jpg, 105 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=629033469,3975445820&fm=26&gp=0.jpg, 106 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2888559990,1552435858&fm=27&gp=0.jpg, 107 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3007512531,2384576955&fm=27&gp=0.jpg, 108 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1302237060,204205005&fm=27&gp=0.jpg, 109 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=220981071,3086206340&fm=27&gp=0.jpg, 110 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=177720383,780598246&fm=27&gp=0.jpg, 111 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1624488789,1958577880&fm=27&gp=0.jpg, 112 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2666527324,2177195675&fm=26&gp=0.jpg, 113 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=52241580,1753107989&fm=26&gp=0.jpg, 114 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=695256187,108176154&fm=27&gp=0.jpg, 115 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=206170343,3888292669&fm=27&gp=0.jpg, 116 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2801733271,1016592564&fm=27&gp=0.jpg, 117 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1086279946,583040994&fm=27&gp=0.jpg, 118 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2914091514,2479458092&fm=27&gp=0.jpg, 119 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2467153489,966901276&fm=27&gp=0.jpg, 120 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=497258708,3746083394&fm=26&gp=0.jpg, 121 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1436292537,3644812176&fm=27&gp=0.jpg, 122 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3682488301,1183261759&fm=27&gp=0.jpg, 123 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2685059564,3563929299&fm=27&gp=0.jpg, 124 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2440163335,3077917530&fm=27&gp=0.jpg, 125 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3108407709,3622672698&fm=27&gp=0.jpg, 126 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2007324771,1134934684&fm=27&gp=0.jpg, 127 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3018195428,2518987712&fm=26&gp=0.jpg, 128 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1417981548,4215913516&fm=27&gp=0.jpg, 129 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1547205045,3791549413&fm=27&gp=0.jpg, 130 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3230740943,2194698121&fm=27&gp=0.jpg, 131 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1943298792,2997861706&fm=27&gp=0.jpg, 132 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1138401671,2361304492&fm=27&gp=0.jpg, 133 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2591172620,1260383735&fm=27&gp=0.jpg, 134 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=229883606,3154095630&fm=26&gp=0.jpg, 135 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2235934775,920223346&fm=26&gp=0.jpg, 136 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1328737306,3410265308&fm=27&gp=0.jpg, 137 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=929278085,4170000936&fm=27&gp=0.jpg, 138 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=176858574,4029396694&fm=27&gp=0.jpg, 139 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3334953118,1947355406&fm=27&gp=0.jpg, 140 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2910563406,644788242&fm=27&gp=0.jpg, 141 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2762038444,2685820858&fm=27&gp=0.jpg, 142 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2148299116,2696119360&fm=26&gp=0.jpg, 143 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1443324730,2930558069&fm=27&gp=0.jpg, 144 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1457107974,1978452582&fm=27&gp=0.jpg, 145 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3768854950,424155264&fm=27&gp=0.jpg, 146 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3294200705,614931365&fm=27&gp=0.jpg, 147 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2887727674,1102752543&fm=27&gp=0.jpg, 148 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2826461367,3400834449&fm=26&gp=0.jpg, 149 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2698166199,1178855095&fm=27&gp=0.jpg, 150 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3202621113,1655780708&fm=27&gp=0.jpg, 151 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1932216275,4053172185&fm=27&gp=0.jpg, 152 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2139654986,3517652307&fm=27&gp=0.jpg, 153 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3581676232,4030134315&fm=27&gp=0.jpg, 154 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2710499010,64924424&fm=27&gp=0.jpg, 155 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3500602038,2821177861&fm=26&gp=0.jpg, 156 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=531738565,717769021&fm=27&gp=0.jpg, 157 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1972343453,3528179949&fm=27&gp=0.jpg, 158 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2807106570,1661959073&fm=27&gp=0.jpg, 159 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2364482468,3196482544&fm=27&gp=0.jpg, 160 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2271169910,938217089&fm=27&gp=0.jpg, 161 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4083421159,638585771&fm=27&gp=0.jpg, 162 | https://img0.bdstatic.com/img/image/HLloading.gif, 163 | https://img1.bdstatic.com/static/searchdetail/widget/ui/controls/card/wikiinfoface/img/wikiinfocardphotobg_263ec97.png, 164 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=538622409,4071463991&fm=201&gp=0.jpg, 165 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1945720922,2255941262&fm=201&gp=0.jpg, 166 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2442863659,2614990474&fm=201&gp=0.jpg, 167 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2800822372,1201288760&fm=27&gp=0.jpg, 168 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1985234499,3189522867&fm=27&gp=0.jpg, 169 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1607018782,2314946042&fm=27&gp=0.jpg, 170 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1061322930,3614891218&fm=27&gp=0.jpg, 171 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3160924040,3588865717&fm=27&gp=0.jpg, 172 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1499693883,1783442491&fm=27&gp=0.jpg, 173 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3928911940,769051781&fm=26&gp=0.jpg, 174 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2692105811,2333284674&fm=26&gp=0.jpg, 175 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2155722118,2192592301&fm=27&gp=0.jpg, 176 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1164206444,2293875285&fm=27&gp=0.jpg, 177 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1825935459,2360790789&fm=27&gp=0.jpg, 178 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4096174413,3446359293&fm=15&gp=0.jpg, 179 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1682568351,1263116161&fm=27&gp=0.jpg, 180 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2915826044,4203612776&fm=27&gp=0.jpg, 181 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2224999347,3899280922&fm=26&gp=0.jpg, 182 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1838695615,3609333281&fm=27&gp=0.jpg, 183 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1106921170,4134575489&fm=27&gp=0.jpg, 184 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3031865412,2665473114&fm=27&gp=0.jpg, 185 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2552245901,1700094&fm=27&gp=0.jpg, 186 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1997480325,896669127&fm=27&gp=0.jpg, 187 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1589937747,789310725&fm=27&gp=0.jpg, 188 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1564480281,429944795&fm=26&gp=0.jpg, 189 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=235411029,1345858542&fm=27&gp=0.jpg, 190 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1331252578,2929448405&fm=27&gp=0.jpg, 191 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1936388772,1042868624&fm=27&gp=0.jpg, 192 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2005110316,2427447080&fm=27&gp=0.jpg, 193 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2213344467,1950315247&fm=27&gp=0.jpg, 194 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1006417548,974034149&fm=15&gp=0.jpg, 195 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3452543339,3301505544&fm=26&gp=0.jpg, 196 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1541055029,4244125299&fm=27&gp=0.jpg, 197 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=350763143,809405552&fm=27&gp=0.jpg, 198 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2643915868,3949705643&fm=27&gp=0.jpg, 199 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3726416426,3715314617&fm=27&gp=0.jpg, 200 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3324049056,1181625626&fm=27&gp=0.jpg, 201 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2525200035,2610087896&fm=27&gp=0.jpg, 202 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=277417361,751195839&fm=26&gp=0.jpg, 203 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=729806899,1444399043&fm=27&gp=0.jpg, 204 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1379120234,3152865175&fm=27&gp=0.jpg, 205 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2486516291,638613890&fm=27&gp=0.jpg, 206 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3472680027,431964595&fm=27&gp=0.jpg, 207 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1372791653,3650311823&fm=27&gp=0.jpg, 208 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=104320231,2853499554&fm=27&gp=0.jpg, 209 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3433813724,569343412&fm=26&gp=0.jpg, 210 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3523039889,2955794419&fm=27&gp=0.jpg, 211 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2894352245,4177601878&fm=27&gp=0.jpg, 212 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2255880450,488330106&fm=27&gp=0.jpg, 213 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1761660857,2703678672&fm=27&gp=0.jpg, 214 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4206863431,2212946360&fm=27&gp=0.jpg, 215 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3585296655,2909848347&fm=27&gp=0.jpg, 216 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3083400826,229550459&fm=26&gp=0.jpg, 217 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1268161742,159684828&fm=27&gp=0.jpg, 218 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1304809434,3820849298&fm=27&gp=0.jpg, 219 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1167144767,2640108695&fm=27&gp=0.jpg, 220 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2281524477,427737989&fm=27&gp=0.jpg, 221 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=270561086,4069835023&fm=27&gp=0.jpg, 222 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2912704680,2643301465&fm=27&gp=0.jpg, 223 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3118191744,3595692708&fm=26&gp=0.jpg, 224 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3542135483,4031435123&fm=27&gp=0.jpg, 225 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=66790642,3185996076&fm=27&gp=0.jpg, 226 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3016986652,1981958087&fm=27&gp=0.jpg, 227 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1857421509,525854766&fm=27&gp=0.jpg, 228 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3351992378,52549346&fm=27&gp=0.jpg, 229 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3013388209,1963248524&fm=27&gp=0.jpg, 230 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2652063522,2644520232&fm=26&gp=0.jpg, 231 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1942745014,3620608539&fm=27&gp=0.jpg, 232 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1437389994,3274504510&fm=27&gp=0.jpg, 233 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1084323393,1205839686&fm=27&gp=0.jpg, 234 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=575482484,3110667457&fm=27&gp=0.jpg, 235 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2740733691,4113105064&fm=27&gp=0.jpg, 236 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3332434564,1503986326&fm=27&gp=0.jpg, 237 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2806850804,251030571&fm=26&gp=0.jpg, 238 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2595049100,2998593641&fm=27&gp=0.jpg, 239 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=42968588,2968653337&fm=27&gp=0.jpg, 240 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2722224729,1341557149&fm=27&gp=0.jpg, 241 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=428546822,1628430824&fm=27&gp=0.jpg, 242 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2328572559,3848721708&fm=27&gp=0.jpg, 243 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1180398646,4147624060&fm=27&gp=0.jpg, 244 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=4248239631,2355276774&fm=26&gp=0.jpg, 245 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=342343472,221282841&fm=27&gp=0.jpg, 246 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1180145434,1177711858&fm=27&gp=0.jpg, 247 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=166989622,3108792985&fm=27&gp=0.jpg, 248 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1272243488,675133942&fm=27&gp=0.jpg, 249 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2319443838,1488652334&fm=27&gp=0.jpg, 250 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2706541511,674717535&fm=27&gp=0.jpg, 251 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4275315392,543751236&fm=26&gp=0.jpg, 252 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1480754646,116337183&fm=27&gp=0.jpg, 253 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3345725167,725014011&fm=27&gp=0.jpg, 254 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=203802912,1119642308&fm=27&gp=0.jpg, 255 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2033548303,546257616&fm=27&gp=0.jpg, 256 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3685602404,3918483229&fm=27&gp=0.jpg, 257 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=284604605,38448217&fm=27&gp=0.jpg, 258 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1344517398,589436193&fm=26&gp=0.jpg, 259 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=10130105,1679483034&fm=27&gp=0.jpg, 260 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3072916474,1395808403&fm=27&gp=0.jpg, 261 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2548149638,2098784086&fm=27&gp=0.jpg, 262 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2815273479,1775120427&fm=27&gp=0.jpg, 263 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1080909332,3369669669&fm=27&gp=0.jpg, 264 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3414285326,546352821&fm=27&gp=0.jpg, 265 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=107983251,4090440613&fm=26&gp=0.jpg, 266 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3625203184,804101321&fm=26&gp=0.jpg, 267 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3166866062,2427841905&fm=26&gp=0.jpg, 268 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4157916598,3833564758&fm=27&gp=0.jpg, 269 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2056489260,3291252434&fm=27&gp=0.jpg, 270 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2706774059,179366141&fm=27&gp=0.jpg, 271 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3843820190,3715734981&fm=27&gp=0.jpg, 272 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=625927343,1719899241&fm=27&gp=0.jpg, 273 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1873714771,307741317&fm=27&gp=0.jpg, 274 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2328235673,1362399183&fm=26&gp=0.jpg, 275 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=245351853,1083563436&fm=27&gp=0.jpg, 276 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1529619199,2240794743&fm=27&gp=0.jpg, 277 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2284085002,161821362&fm=15&gp=0.jpg, 278 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2768441741,1515910705&fm=27&gp=0.jpg, 279 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2714062923,1552951165&fm=27&gp=0.jpg, 280 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2492710281,1941697393&fm=27&gp=0.jpg, 281 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2287928750,4272160221&fm=26&gp=0.jpg, 282 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1462842697,3331317510&fm=27&gp=0.jpg, 283 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=165670373,1278964419&fm=27&gp=0.jpg, 284 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1407632525,3102568396&fm=27&gp=0.jpg, 285 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2120986801,426965089&fm=27&gp=0.jpg, 286 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2986786798,522378530&fm=27&gp=0.jpg, 287 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1928633782,2202762817&fm=27&gp=0.jpg, 288 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2120610136,808118452&fm=26&gp=0.jpg, 289 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=8896309,1061882364&fm=27&gp=0.jpg, 290 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1111573318,3820205646&fm=27&gp=0.jpg, 291 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2637593200,1862789198&fm=27&gp=0.jpg, 292 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3174337709,2346491731&fm=27&gp=0.jpg, 293 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1275678042,3857886990&fm=27&gp=0.jpg, 294 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1651555730,2845323204&fm=27&gp=0.jpg, 295 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2490736488,3210123671&fm=26&gp=0.jpg, 296 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=695256187,108176154&fm=27&gp=0.jpg, 297 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=261757002,1290719081&fm=27&gp=0.jpg, 298 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=205452077,4058117773&fm=27&gp=0.jpg, 299 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=185306399,2630992969&fm=27&gp=0.jpg, 300 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=206170343,3888292669&fm=27&gp=0.jpg, 301 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2567047015,576389128&fm=27&gp=0.jpg, 302 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3408630431,1443049770&fm=26&gp=0.jpg, 303 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2121787827,3504548430&fm=27&gp=0.jpg, 304 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2331391733,2546889415&fm=27&gp=0.jpg, 305 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=319633032,1251923682&fm=27&gp=0.jpg, 306 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1437665134,2525980681&fm=27&gp=0.jpg, 307 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1619730019,2012223632&fm=27&gp=0.jpg, 308 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2699166017,2259364147&fm=27&gp=0.jpg, 309 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3563305101,1329310873&fm=26&gp=0.jpg, 310 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1502219799,3075663588&fm=27&gp=0.jpg, 311 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1479724216,1769110677&fm=27&gp=0.jpg, 312 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1330559126,3672112320&fm=27&gp=0.jpg, 313 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=166111239,3157712737&fm=27&gp=0.jpg, 314 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1851642446,2569314431&fm=27&gp=0.jpg, 315 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3249513426,1128586481&fm=27&gp=0.jpg, 316 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2092105266,1730161397&fm=26&gp=0.jpg, 317 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1507694692,2011588823&fm=27&gp=0.jpg, 318 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2781725264,2366511525&fm=27&gp=0.jpg, 319 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2816296060,2469475946&fm=27&gp=0.jpg, 320 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2271397766,1150856376&fm=27&gp=0.jpg, 321 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2976557057,594020537&fm=27&gp=0.jpg, 322 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=415177920,253113719&fm=26&gp=0.jpg, 323 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2652865424,234636189&fm=27&gp=0.jpg, 324 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1051051025,3735923862&fm=27&gp=0.jpg, 325 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1346477421,2819066791&fm=27&gp=0.jpg, 326 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2234608679,1110646773&fm=27&gp=0.jpg, 327 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1895797415,616404677&fm=27&gp=0.jpg, 328 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2895505793,590571972&fm=27&gp=0.jpg, 329 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=296677358,3499089681&fm=26&gp=0.jpg, 330 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=997824046,2712399427&fm=27&gp=0.jpg, 331 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4195081958,2796375361&fm=27&gp=0.jpg, 332 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2133337817,3307296551&fm=27&gp=0.jpg, 333 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=148531612,39893046&fm=27&gp=0.jpg, 334 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1975953414,2450763327&fm=27&gp=0.jpg, 335 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2198880099,1511696055&fm=15&gp=0.jpg, 336 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1367694930,2373434485&fm=26&gp=0.jpg, 337 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3620662085,4214282678&fm=27&gp=0.jpg, 338 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1168592490,2020184301&fm=27&gp=0.jpg, 339 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1490427812,2959669063&fm=27&gp=0.jpg, 340 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=810727360,278669985&fm=27&gp=0.jpg, 341 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2641704295,414242928&fm=27&gp=0.jpg, 342 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=600514434,3283087403&fm=27&gp=0.jpg, 343 | https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK/tb/pms/img/st.gif, 344 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3779778654,1136512180&fm=26&gp=0.jpg, 345 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1038295178,509110766&fm=27&gp=0.jpg, 346 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3370329412,3385713135&fm=27&gp=0.jpg, 347 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3339444871,3987020473&fm=27&gp=0.jpg, 348 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2705126453,2771950995&fm=27&gp=0.jpg, 349 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1612694118,53007752&fm=27&gp=0.jpg, 350 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2439575384,2742587397&fm=27&gp=0.jpg, 351 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3803763125,2711646123&fm=26&gp=0.jpg, 352 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1405440005,3470948085&fm=27&gp=0.jpg, 353 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3124777685,1620318400&fm=27&gp=0.jpg, 354 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2426262471,2743558241&fm=27&gp=0.jpg, 355 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2300209331,2507632429&fm=27&gp=0.jpg, 356 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2376037436,1385756909&fm=27&gp=0.jpg, 357 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1733771462,2552884167&fm=27&gp=0.jpg, 358 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3866603801,4051505028&fm=26&gp=0.jpg, 359 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1060912135,2411802757&fm=27&gp=0.jpg, 360 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3593472079,236910025&fm=27&gp=0.jpg, 361 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1680019095,3671684542&fm=27&gp=0.jpg, 362 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=988744791,1723385108&fm=27&gp=0.jpg, 363 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1273175769,2763505250&fm=27&gp=0.jpg, 364 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3100875027,707922502&fm=27&gp=0.jpg, 365 | https://img0.bdstatic.com/img/image/HLloading.gif, 366 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1946694554,147160162&fm=27&gp=0.jpg, 367 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1718504916,4178336704&fm=27&gp=0.jpg, 368 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=976930744,1020507802&fm=27&gp=0.jpg, 369 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2681901134,2002997145&fm=27&gp=0.jpg, 370 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2587962381,2869607861&fm=27&gp=0.jpg, 371 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3605332072,3680192249&fm=27&gp=0.jpg, 372 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3576647682,1606692823&fm=26&gp=0.jpg, 373 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=259118245,1426599124&fm=26&gp=0.jpg, 374 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1987687198,600480744&fm=27&gp=0.jpg, 375 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4191335574,950521636&fm=27&gp=0.jpg, 376 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=458521328,1230672781&fm=27&gp=0.jpg, 377 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=136469278,4018951749&fm=27&gp=0.jpg, 378 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=604230998,2747938888&fm=27&gp=0.jpg, 379 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=480101056,4130467631&fm=27&gp=0.jpg, 380 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3374703905,4290264251&fm=26&gp=0.jpg, 381 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2078819382,3666489147&fm=27&gp=0.jpg, 382 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1475628853,2808067948&fm=27&gp=0.jpg, 383 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3922995344,3494665776&fm=27&gp=0.jpg, 384 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2135800450,1485040040&fm=27&gp=0.jpg, 385 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=23772258,2664193228&fm=27&gp=0.jpg, 386 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=326487695,1128317832&fm=27&gp=0.jpg, 387 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=119474420,3151201264&fm=26&gp=0.jpg, 388 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4260505542,2567982492&fm=27&gp=0.jpg, 389 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3905048128,934041176&fm=27&gp=0.jpg, 390 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=431849821,337900900&fm=27&gp=0.jpg, 391 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2042146288,2761069568&fm=27&gp=0.jpg, 392 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1601354547,765490680&fm=27&gp=0.jpg, 393 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2536735135,1749046724&fm=26&gp=0.jpg, 394 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=304789705,529345636&fm=26&gp=0.jpg, 395 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2704285218,374233246&fm=27&gp=0.jpg, 396 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2479330323,3107964715&fm=15&gp=0.jpg, 397 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=171790016,2303984999&fm=27&gp=0.jpg, 398 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3109722445,4164485727&fm=27&gp=0.jpg, 399 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1506720471,152698912&fm=27&gp=0.jpg, 400 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3745024509,1294820263&fm=27&gp=0.jpg, 401 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2669955196,2243177674&fm=26&gp=0.jpg, 402 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3420080669,3293632434&fm=26&gp=0.jpg, 403 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=532860465,4275173152&fm=27&gp=0.jpg, 404 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=200758907,2203714794&fm=27&gp=0.jpg, 405 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=51745972,1148067608&fm=27&gp=0.jpg, 406 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3012593352,1735505112&fm=27&gp=0.jpg, 407 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2921619845,463251661&fm=27&gp=0.jpg, 408 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2436908275,4188373681&fm=27&gp=0.jpg, 409 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3223946373,995734852&fm=11&gp=0.jpg, 410 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2268890450,337883645&fm=27&gp=0.jpg, 411 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3602432002,142010592&fm=27&gp=0.jpg, 412 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2102068491,3671597948&fm=27&gp=0.jpg, 413 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2033475121,1392150811&fm=27&gp=0.jpg, 414 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=664376358,1266009028&fm=27&gp=0.jpg, 415 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=481773163,266497502&fm=27&gp=0.jpg, 416 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2301424660,2745437556&fm=26&gp=0.jpg, 417 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3576462447,2163529637&fm=26&gp=0.jpg, 418 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=911738750,780412310&fm=27&gp=0.jpg, 419 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2741357529,807113778&fm=27&gp=0.jpg, 420 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3475917368,1372818559&fm=27&gp=0.jpg, 421 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1719360209,1388754026&fm=27&gp=0.jpg, 422 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3527301784,54032869&fm=27&gp=0.jpg, 423 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=453407751,4272606430&fm=27&gp=0.jpg, 424 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3220797702,1961409026&fm=26&gp=0.jpg, 425 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3229045480,3780302107&fm=27&gp=0.jpg, 426 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4183940907,1690796457&fm=27&gp=0.jpg, 427 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4255798302,3895475382&fm=27&gp=0.jpg, 428 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3484674975,1300212233&fm=27&gp=0.jpg, 429 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2871462218,3372457104&fm=27&gp=0.jpg, 430 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3164808581,2504647700&fm=27&gp=0.jpg, 431 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=403307495,1986227261&fm=26&gp=0.jpg, 432 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=685291064,54453459&fm=27&gp=0.jpg, 433 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3613097972,1515592160&fm=27&gp=0.jpg, 434 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2031374191,3571461055&fm=27&gp=0.jpg, 435 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=4042761624,2531973819&fm=27&gp=0.jpg, 436 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1596111805,867594709&fm=27&gp=0.jpg, 437 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1163266585,1990963493&fm=27&gp=0.jpg, 438 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3452911014,3607837797&fm=11&gp=0.jpg, 439 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4099388959,960481418&fm=27&gp=0.jpg, 440 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3099336563,2811580387&fm=27&gp=0.jpg, 441 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3889401022,719177657&fm=27&gp=0.jpg, 442 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=93300256,2315514572&fm=27&gp=0.jpg, 443 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=229883606,3154095630&fm=27&gp=0.jpg, 444 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2056489260,3291252434&fm=27&gp=0.jpg, 445 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2655320789,3002351415&fm=26&gp=0.jpg, 446 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1731367716,2949962479&fm=27&gp=0.jpg, 447 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1234691938,822159576&fm=27&gp=0.jpg, 448 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1268161742,159684828&fm=27&gp=0.jpg, 449 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3030966612,3056169792&fm=27&gp=0.jpg, 450 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1904723729,2218346751&fm=27&gp=0.jpg, 451 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2845621551,1189713195&fm=27&gp=0.jpg, 452 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3167564747,2258661215&fm=26&gp=0.jpg, 453 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3913024060,4190396581&fm=27&gp=0.jpg, 454 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1251528104,1046592358&fm=27&gp=0.jpg, 455 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2800948925,351324762&fm=27&gp=0.jpg, 456 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3127797941,4142706886&fm=27&gp=0.jpg, 457 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=345602108,771622571&fm=27&gp=0.jpg, 458 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1302391133,157182724&fm=27&gp=0.jpg, 459 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2675648432,1729448348&fm=26&gp=0.jpg, 460 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1735897749,2437725525&fm=27&gp=0.jpg, 461 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2713203451,2755497443&fm=27&gp=0.jpg, 462 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2309845720,794985804&fm=27&gp=0.jpg, 463 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3445665611,1858700233&fm=27&gp=0.jpg, 464 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2408675340,3291780171&fm=27&gp=0.jpg, 465 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3050724947,1436312391&fm=27&gp=0.jpg, 466 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124428108,474090269&fm=26&gp=0.jpg, 467 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1922898433,516882476&fm=27&gp=0.jpg, 468 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3095981146,214277882&fm=27&gp=0.jpg, 469 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3260891841,3069868815&fm=27&gp=0.jpg, 470 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=16311825,111659005&fm=27&gp=0.jpg, 471 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3794420309,2242934221&fm=27&gp=0.jpg, 472 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=349678295,2857841048&fm=27&gp=0.jpg, 473 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=189307,3316581724&fm=26&gp=0.jpg, 474 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4204983305,1311027751&fm=27&gp=0.jpg, 475 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1109733339,1321352636&fm=27&gp=0.jpg, 476 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2010839856,3673159246&fm=27&gp=0.jpg, 477 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2747159914,3508181826&fm=27&gp=0.jpg, 478 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=140594359,1801583176&fm=27&gp=0.jpg, 479 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3973526243,2678856270&fm=15&gp=0.jpg, 480 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2555452057,2633794202&fm=26&gp=0.jpg, 481 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2716525062,3750931106&fm=27&gp=0.jpg, 482 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3576613698,1580914353&fm=27&gp=0.jpg, 483 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=117633299,3324616005&fm=27&gp=0.jpg, 484 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3057051824,3485627912&fm=27&gp=0.jpg, 485 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1251070034,2150249808&fm=27&gp=0.jpg, 486 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1154402399,4835039&fm=27&gp=0.jpg, 487 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2340700250,272333907&fm=26&gp=0.jpg, 488 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1086589754,4226735382&fm=27&gp=0.jpg, 489 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=591185304,255415045&fm=27&gp=0.jpg, 490 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2879072285,3693627331&fm=27&gp=0.jpg, 491 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1871940974,4030152376&fm=27&gp=0.jpg, 492 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3022924507,1046267656&fm=27&gp=0.jpg, 493 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=4273053327,3136318491&fm=27&gp=0.jpg, 494 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1244703828,4140803694&fm=26&gp=0.jpg, 495 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2300587541,2597686703&fm=27&gp=0.jpg, 496 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1935370675,2122489044&fm=27&gp=0.jpg, 497 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1679424655,1929492765&fm=27&gp=0.jpg, 498 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3309442752,2301734809&fm=27&gp=0.jpg, 499 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=205259449,3393607579&fm=27&gp=0.jpg, 500 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2817478775,3126579371&fm=27&gp=0.jpg, 501 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2833504469,3422155998&fm=26&gp=0.jpg, 502 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2142479812,3828949119&fm=11&gp=0.jpg, 503 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=321051364,670029269&fm=27&gp=0.jpg, 504 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3004522308,425313835&fm=27&gp=0.jpg, 505 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=134488728,1063818613&fm=27&gp=0.jpg, 506 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2404658855,3635919938&fm=27&gp=0.jpg, 507 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2208906800,3897804863&fm=27&gp=0.jpg, 508 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1124985179,2123914388&fm=27&gp=0.jpg, 509 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=782462033,808831886&fm=11&gp=0.jpg, 510 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3298713952,1190523349&fm=27&gp=0.jpg, 511 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1918059532,925748298&fm=27&gp=0.jpg, 512 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2041765736,3839922849&fm=27&gp=0.jpg, 513 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1396333180,3321532521&fm=27&gp=0.jpg, 514 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=918285930,95724696&fm=27&gp=0.jpg, 515 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=223576520,1771555090&fm=27&gp=0.jpg, 516 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=262046905,1577142853&fm=26&gp=0.jpg, 517 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2337892138,2595218556&fm=27&gp=0.jpg, 518 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2152418213,773428049&fm=27&gp=0.jpg, 519 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2666019136,2927274338&fm=27&gp=0.jpg, 520 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2584154347,3177164396&fm=27&gp=0.jpg, 521 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2391900927,9900697&fm=27&gp=0.jpg, 522 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1214792105,2829944252&fm=27&gp=0.jpg, 523 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1288444914,2972274951&fm=26&gp=0.jpg, 524 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=589030349,317373330&fm=26&gp=0.jpg, 525 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2146664212,1718762296&fm=26&gp=0.jpg, 526 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3384381557,404994181&fm=27&gp=0.jpg, 527 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3652754606,3170698247&fm=27&gp=0.jpg, 528 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1289021412,152186336&fm=27&gp=0.jpg, 529 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=625106206,2402327136&fm=27&gp=0.jpg, 530 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3392311098,385561567&fm=27&gp=0.jpg, 531 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2572099439,3928901169&fm=26&gp=0.jpg, 532 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2667103721,4031219275&fm=27&gp=0.jpg, 533 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1629888489,3137023459&fm=27&gp=0.jpg, 534 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2562859509,1286099820&fm=27&gp=0.jpg, 535 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2479330323,3107964715&fm=15&gp=0.jpg, 536 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2619976269,844885864&fm=27&gp=0.jpg, 537 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2302268867,3005987525&fm=27&gp=0.jpg, 538 | https://img0.bdstatic.com/img/image/HLloading.gif, 539 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3303429125,451900873&fm=27&gp=0.jpg, 540 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3127255819,330913793&fm=15&gp=0.jpg, 541 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1999942256,3095096976&fm=27&gp=0.jpg, 542 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2267330797,73942331&fm=27&gp=0.jpg, 543 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1504360833,3289266880&fm=27&gp=0.jpg, 544 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2554211915,896739437&fm=27&gp=0.jpg, 545 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3591012231,3518071288&fm=26&gp=0.jpg, 546 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3066866602,1619545602&fm=26&gp=0.jpg, 547 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1588846277,2976422927&fm=27&gp=0.jpg, 548 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1988495096,2810934597&fm=27&gp=0.jpg, 549 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2861055262,3198513345&fm=27&gp=0.jpg, 550 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3415519867,1273918003&fm=27&gp=0.jpg, 551 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3120312907,1082209084&fm=27&gp=0.jpg, 552 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3709290707,3992663394&fm=27&gp=0.jpg, 553 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2359203920,4287339711&fm=26&gp=0.jpg, 554 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2815273479,1775120427&fm=27&gp=0.jpg, 555 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2996494993,2877008378&fm=27&gp=0.jpg, 556 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2271397766,1150856376&fm=27&gp=0.jpg, 557 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=165028187,3556567902&fm=27&gp=0.jpg, 558 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2098035513,462278853&fm=27&gp=0.jpg, 559 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3284879663,908792034&fm=27&gp=0.jpg, 560 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1718504916,4178336704&fm=26&gp=0.jpg, 561 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1630217568,1863329501&fm=27&gp=0.jpg, 562 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2838085644,3919825832&fm=27&gp=0.jpg, 563 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1465812137,32881932&fm=27&gp=0.jpg, 564 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2357539925,2803358652&fm=27&gp=0.jpg, 565 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1621138109,4192898525&fm=27&gp=0.jpg, 566 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1541696549,4236307745&fm=27&gp=0.jpg, 567 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3617930331,495891600&fm=26&gp=0.jpg, 568 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=138524905,2500667046&fm=27&gp=0.jpg, 569 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1717477529,1730192435&fm=27&gp=0.jpg, 570 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1726317015,2024640821&fm=27&gp=0.jpg, 571 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=866581804,3678664038&fm=27&gp=0.jpg, 572 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3474795917,1579107723&fm=27&gp=0.jpg, 573 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2852817562,1289783867&fm=27&gp=0.jpg, 574 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1300892422,1059840386&fm=26&gp=0.jpg, 575 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1041692387,741386932&fm=26&gp=0.jpg, 576 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1864234418,2631036152&fm=27&gp=0.jpg, 577 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1935370675,2122489044&fm=27&gp=0.jpg, 578 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3309442752,2301734809&fm=27&gp=0.jpg, 579 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1785070247,1855999878&fm=27&gp=0.jpg, 580 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=47840403,685403363&fm=27&gp=0.jpg, 581 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3051523273,1778200958&fm=27&gp=0.jpg, 582 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=638713069,143233141&fm=27&gp=0.jpg, 583 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3006260201,2045120700&fm=27&gp=0.jpg, 584 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3456335112,3838508711&fm=27&gp=0.jpg, 585 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1820752056,4025165768&fm=27&gp=0.jpg, 586 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=111591251,2283094556&fm=27&gp=0.jpg, 587 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3462797688,426043143&fm=27&gp=0.jpg, 588 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3994748846,232610905&fm=26&gp=0.jpg, 589 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3478553935,2282212300&fm=26&gp=0.jpg, 590 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=11570768,73353157&fm=26&gp=0.jpg, 591 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=36325962,4263420356&fm=26&gp=0.jpg, 592 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3324104865,3785258673&fm=27&gp=0.jpg, 593 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1305529956,2062665608&fm=27&gp=0.jpg, 594 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1739813222,1213875362&fm=27&gp=0.jpg, 595 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1997535236,1580331678&fm=27&gp=0.jpg, 596 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3063113522,4158185828&fm=27&gp=0.jpg, 597 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=488743500,3432923983&fm=27&gp=0.jpg, 598 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1290602726,646481832&fm=26&gp=0.jpg, 599 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2698690210,1792365224&fm=26&gp=0.jpg, 600 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2239133433,2735029931&fm=27&gp=0.jpg, 601 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=260710341,1920151070&fm=27&gp=0.jpg, 602 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1393292749,2061391342&fm=27&gp=0.jpg, 603 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1128959627,2597919468&fm=27&gp=0.jpg, 604 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2098261530,3390242957&fm=27&gp=0.jpg, 605 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2155816780,495053188&fm=27&gp=0.jpg, 606 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1849720242,3416853619&fm=26&gp=0.jpg, 607 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4223910041,2638216669&fm=27&gp=0.jpg, 608 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3764659206,3630895395&fm=27&gp=0.jpg, 609 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3770729570,1636360452&fm=27&gp=0.jpg, 610 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=4218770757,359386613&fm=27&gp=0.jpg, 611 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1375391012,2490930764&fm=27&gp=0.jpg, 612 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3984900664,3814607320&fm=27&gp=0.jpg, 613 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2515711548,2207634785&fm=26&gp=0.jpg, 614 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3577960973,2593559947&fm=27&gp=0.jpg, 615 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1337456087,3285181423&fm=27&gp=0.jpg, 616 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3596579612,2590093929&fm=27&gp=0.jpg, 617 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1911427568,2727993693&fm=27&gp=0.jpg, 618 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3638769371,203572129&fm=27&gp=0.jpg, 619 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1708226104,1870682316&fm=27&gp=0.jpg, 620 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1882428159,460456211&fm=26&gp=0.jpg, 621 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=639012809,1570055768&fm=27&gp=0.jpg, 622 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2562859509,1286099820&fm=27&gp=0.jpg, 623 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1815262785,2654859058&fm=27&gp=0.jpg, 624 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1069528870,991840818&fm=27&gp=0.jpg, 625 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1728601298,1214614912&fm=27&gp=0.jpg, 626 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3846310047,640289552&fm=27&gp=0.jpg, 627 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2219786099,2593368679&fm=26&gp=0.jpg, 628 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3832339420,685482346&fm=27&gp=0.jpg, 629 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3880841168,2719751138&fm=27&gp=0.jpg, 630 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2354244227,3811531889&fm=27&gp=0.jpg, 631 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3473005237,3519014127&fm=27&gp=0.jpg, 632 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1747024792,2412482801&fm=27&gp=0.jpg, 633 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4132657144,2223564332&fm=27&gp=0.jpg, 634 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2401965032,173540328&fm=11&gp=0.jpg, 635 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1033657316,2117636436&fm=27&gp=0.jpg, 636 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=659649944,913226653&fm=27&gp=0.jpg, 637 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=976930744,1020507802&fm=27&gp=0.jpg, 638 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1634625095,3090693165&fm=27&gp=0.jpg, 639 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1773757282,2050489182&fm=27&gp=0.jpg, 640 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1037152985,1264540763&fm=27&gp=0.jpg, 641 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1159004425,427384050&fm=11&gp=0.jpg, 642 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1988484358,3355843890&fm=27&gp=0.jpg, 643 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1033445763,1144008255&fm=27&gp=0.jpg, 644 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2765724621,411565822&fm=27&gp=0.jpg, 645 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1289782772,1089199909&fm=27&gp=0.jpg, 646 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2449652662,956321515&fm=27&gp=0.jpg, 647 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=387672489,2592211563&fm=27&gp=0.jpg, 648 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=813267392,263805314&fm=11&gp=0.jpg, 649 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2470420564,4099673359&fm=27&gp=0.jpg, 650 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1459511974,649805540&fm=27&gp=0.jpg, 651 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3207251115,4202325087&fm=27&gp=0.jpg, 652 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2638109452,3437567189&fm=27&gp=0.jpg, 653 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=106953810,369110807&fm=27&gp=0.jpg, 654 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=165289572,2693958727&fm=27&gp=0.jpg, 655 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1786063011,2199675455&fm=26&gp=0.jpg, 656 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4224600805,2363683691&fm=27&gp=0.jpg, 657 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3450661914,3682132015&fm=27&gp=0.jpg, 658 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1711038406,2987439192&fm=27&gp=0.jpg, 659 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1264018805,3801299144&fm=27&gp=0.jpg, 660 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1256015004,3776078702&fm=27&gp=0.jpg, 661 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=743735562,3987815654&fm=27&gp=0.jpg, 662 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=180659332,3558016383&fm=26&gp=0.jpg, 663 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1429307005,4124489631&fm=26&gp=0.jpg, 664 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1778508150,3484776851&fm=27&gp=0.jpg, 665 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1798315644,3977742876&fm=27&gp=0.jpg, 666 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1519773674,3636036917&fm=27&gp=0.jpg, 667 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=251593765,352827237&fm=27&gp=0.jpg, 668 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3339322595,2857051907&fm=27&gp=0.jpg, 669 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2668901541,2411651892&fm=27&gp=0.jpg, 670 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2287270233,848042738&fm=26&gp=0.jpg, 671 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2771845039,1206034308&fm=27&gp=0.jpg, 672 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1700124436,1053851458&fm=27&gp=0.jpg, 673 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2741511099,4132971737&fm=27&gp=0.jpg, 674 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4134119001,2681101891&fm=27&gp=0.jpg, 675 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=278655346,1452010301&fm=27&gp=0.jpg, 676 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3229966684,2583178489&fm=27&gp=0.jpg, 677 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3482756944,3818218176&fm=201&gp=0.jpg, 678 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1109176428,3889104824&fm=201&gp=0.jpg, 679 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=758830308,123045269&fm=201&gp=0.jpg, 680 | https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2061211253,1142853978&fm=26&gp=0.jpg, 681 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1852855172,190902392&fm=27&gp=0.jpg, 682 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2995150965,2572603854&fm=27&gp=0.jpg, 683 | https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=4157916598,3833564758&fm=27&gp=0.jpg, 684 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=625927343,1719899241&fm=27&gp=0.jpg, 685 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2435840008,1614768645&fm=27&gp=0.jpg, 686 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2254658747,378139117&fm=27&gp=0.jpg, 687 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2568112437,2524161484&fm=26&gp=0.jpg, 688 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1735748103,1930941474&fm=27&gp=0.jpg, 689 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=629264905,3252839961&fm=27&gp=0.jpg, 690 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2084574125,3169824587&fm=27&gp=0.jpg, 691 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4276033306,2814217333&fm=27&gp=0.jpg, 692 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3247538106,2466440566&fm=27&gp=0.jpg, 693 | https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=936954791,1359703616&fm=27&gp=0.jpg, 694 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3559095009,3299076886&fm=26&gp=0.jpg, 695 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3828808524,1531487311&fm=27&gp=0.jpg, 696 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2874829567,3339403277&fm=27&gp=0.jpg, 697 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2314801926,2239023516&fm=27&gp=0.jpg, 698 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1338868132,621477439&fm=27&gp=0.jpg, 699 | https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3262999592,2577799663&fm=27&gp=0.jpg, 700 | https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3359191307,399775104&fm=27&gp=0.jpg, 701 | https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4247123097,2964120862&fm=26&gp=0.jpg 702 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/AppContext.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | import android.app.Activity; 4 | import android.app.Application; 5 | import android.content.Context; 6 | import android.content.res.Resources; 7 | import android.os.Bundle; 8 | import android.util.Log; 9 | 10 | import java.lang.ref.WeakReference; 11 | 12 | public class AppContext { 13 | private static final String TAG = "AppContext"; 14 | public static Application sApplication; 15 | private static final InnerLifecycleHandler INNER_LIFECYCLE_HANDLER; 16 | 17 | static { 18 | Application app = null; 19 | try { 20 | app = (Application) Class.forName("android.app.AppGlobals").getMethod("getInitialApplication").invoke(null); 21 | if (app == null) 22 | throw new IllegalStateException("Static initialization of Applications must be on main thread."); 23 | } catch (final Exception e) { 24 | Log.e(TAG, "Failed to get current application from AppGlobals." + e.getMessage()); 25 | try { 26 | app = (Application) Class.forName("android.app.ActivityThread").getMethod("currentApplication").invoke(null); 27 | } catch (final Exception ex) { 28 | Log.e(TAG, "Failed to get current application from ActivityThread." + e.getMessage()); 29 | } 30 | } finally { 31 | sApplication = app; 32 | } 33 | INNER_LIFECYCLE_HANDLER = new InnerLifecycleHandler(); 34 | if (sApplication != null) { 35 | sApplication.registerActivityLifecycleCallbacks(INNER_LIFECYCLE_HANDLER); 36 | } 37 | } 38 | 39 | public static boolean isAppVisable() { 40 | return INNER_LIFECYCLE_HANDLER != null && INNER_LIFECYCLE_HANDLER.started > INNER_LIFECYCLE_HANDLER.stopped; 41 | } 42 | 43 | public static boolean isAppBackground() { 44 | return INNER_LIFECYCLE_HANDLER != null && INNER_LIFECYCLE_HANDLER.resumed <= INNER_LIFECYCLE_HANDLER.stopped; 45 | } 46 | 47 | private static void checkAppContext() { 48 | if (sApplication == null) { 49 | reflectAppContext(); 50 | } 51 | if (sApplication == null) { 52 | throw new IllegalStateException("app reference is null"); 53 | } 54 | } 55 | 56 | private static void reflectAppContext() { 57 | Application app = null; 58 | try { 59 | app = (Application) Class.forName("android.app.AppGlobals").getMethod("getInitialApplication").invoke(null); 60 | if (app == null) 61 | throw new IllegalStateException("Static initialization of Applications must be on main thread."); 62 | } catch (final Exception e) { 63 | Log.e(TAG, "Failed to get current application from AppGlobals." + e.getMessage()); 64 | try { 65 | app = (Application) Class.forName("android.app.ActivityThread").getMethod("currentApplication").invoke(null); 66 | } catch (final Exception ex) { 67 | Log.e(TAG, "Failed to get current application from ActivityThread." + e.getMessage()); 68 | } 69 | } finally { 70 | sApplication = app; 71 | } 72 | if (sApplication != null && INNER_LIFECYCLE_HANDLER != null) { 73 | sApplication.registerActivityLifecycleCallbacks(INNER_LIFECYCLE_HANDLER); 74 | } 75 | } 76 | 77 | public static Application getAppInstance() { 78 | checkAppContext(); 79 | return sApplication; 80 | } 81 | 82 | public static Context getAppContext() { 83 | checkAppContext(); 84 | return sApplication.getApplicationContext(); 85 | } 86 | 87 | public static Resources getResources() { 88 | checkAppContext(); 89 | return sApplication.getResources(); 90 | } 91 | 92 | public static Activity getTopActivity() { 93 | return INNER_LIFECYCLE_HANDLER.mTopActivity == null ? null : INNER_LIFECYCLE_HANDLER.mTopActivity.get(); 94 | } 95 | 96 | private static class InnerLifecycleHandler implements Application.ActivityLifecycleCallbacks { 97 | private int created; 98 | private int resumed; 99 | private int paused; 100 | private int started; 101 | private int stopped; 102 | private WeakReference mTopActivity; 103 | 104 | 105 | @Override 106 | public void onActivityCreated(Activity activity, Bundle savedInstanceState) { 107 | ++created; 108 | 109 | } 110 | 111 | @Override 112 | public void onActivityStarted(Activity activity) { 113 | ++started; 114 | 115 | } 116 | 117 | @Override 118 | public void onActivityResumed(Activity activity) { 119 | ++resumed; 120 | mTopActivity = new WeakReference<>(activity); 121 | } 122 | 123 | @Override 124 | public void onActivityPaused(Activity activity) { 125 | ++paused; 126 | 127 | } 128 | 129 | @Override 130 | public void onActivityStopped(Activity activity) { 131 | ++stopped; 132 | 133 | } 134 | 135 | @Override 136 | public void onActivitySaveInstanceState(Activity activity, Bundle outState) { 137 | 138 | } 139 | 140 | @Override 141 | public void onActivityDestroyed(Activity activity) { 142 | 143 | } 144 | } 145 | 146 | } 147 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/DemoActivity.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | import android.content.Context; 4 | import android.os.Bundle; 5 | import android.support.annotation.NonNull; 6 | import android.support.v7.app.AppCompatActivity; 7 | import android.support.v7.widget.LinearLayoutManager; 8 | import android.view.LayoutInflater; 9 | import android.view.View; 10 | import android.view.ViewGroup; 11 | import android.widget.ImageView; 12 | import android.widget.TextView; 13 | 14 | import com.jcodecraeer.xrecyclerview.XRecyclerView; 15 | 16 | import java.util.ArrayList; 17 | import java.util.List; 18 | 19 | import razerdp.github.com.demo.baseadapter.BaseRecyclerViewAdapter; 20 | import razerdp.github.com.demo.baseadapter.BaseRecyclerViewHolder; 21 | import razerdp.github.com.demo.utils.RandomUtil; 22 | import razerdp.github.com.demo.utils.ToolUtil; 23 | import razerdp.github.com.demo.utils.rx.RxCall; 24 | import razerdp.github.com.demo.utils.rx.RxHelper; 25 | import razerdp.github.com.widget.PhotoContents; 26 | import razerdp.github.com.widget.layoutmanager.NineGridLayoutManager; 27 | 28 | public class DemoActivity extends AppCompatActivity implements XRecyclerView.LoadingListener { 29 | 30 | private XRecyclerView xrecyclerview; 31 | private InnerAdapter adapter; 32 | 33 | @Override 34 | protected void onCreate(Bundle savedInstanceState) { 35 | super.onCreate(savedInstanceState); 36 | setContentView(R.layout.activity_main); 37 | initView(); 38 | } 39 | 40 | private void initView() { 41 | xrecyclerview = findViewById(R.id.xrecyclerview); 42 | LinearLayoutManager layoutManager = new LinearLayoutManager(this); 43 | layoutManager.setOrientation(LinearLayoutManager.VERTICAL); 44 | xrecyclerview.setLayoutManager(layoutManager); 45 | xrecyclerview.setLoadingListener(this); 46 | xrecyclerview.setItemAnimator(null); 47 | adapter = new InnerAdapter(this, new ArrayList>()); 48 | xrecyclerview.setAdapter(adapter); 49 | xrecyclerview.refresh(); 50 | } 51 | 52 | @Override 53 | public void onRefresh() { 54 | RxHelper.delay(RandomUtil.randomInt(200, 1500), new RxCall() { 55 | @Override 56 | public void onCall(Long data) { 57 | adapter.updateData(randomPhoto(RandomUtil.randomInt(15, 20))); 58 | xrecyclerview.refreshComplete(); 59 | } 60 | }); 61 | } 62 | 63 | @Override 64 | public void onLoadMore() { 65 | RxHelper.delay(RandomUtil.randomInt(200, 1500), new RxCall() { 66 | @Override 67 | public void onCall(Long data) { 68 | adapter.addMore(randomPhoto(RandomUtil.randomInt(15, 20))); 69 | xrecyclerview.refreshComplete(); 70 | } 71 | }); 72 | } 73 | 74 | public List> randomPhoto(int count) { 75 | List> result = new ArrayList<>(); 76 | for (int i = 0; i < count; i++) { 77 | int photoCount = RandomUtil.randomInt(0, 9); 78 | List content = new ArrayList<>(); 79 | if (photoCount <= 0) { 80 | result.add(content); 81 | } else { 82 | for (int j = 0; j < photoCount; j++) { 83 | content.add(TestServerData.getPicUrl()); 84 | } 85 | result.add(content); 86 | } 87 | } 88 | return result; 89 | } 90 | 91 | //=============================================================InnerAdapter 92 | 93 | private static class InnerAdapter extends BaseRecyclerViewAdapter> { 94 | 95 | 96 | public InnerAdapter(@NonNull Context context, @NonNull List> datas) { 97 | super(context, datas); 98 | } 99 | 100 | @Override 101 | protected int getViewType(int position, @NonNull List data) { 102 | return 0; 103 | } 104 | 105 | @Override 106 | protected int getLayoutResId(int viewType) { 107 | return R.layout.item_multi_image; 108 | } 109 | 110 | @Override 111 | protected BaseRecyclerViewHolder getViewHolder(ViewGroup parent, View inflatedView, int viewType) { 112 | return new InnerViewHolder(inflatedView, viewType); 113 | } 114 | 115 | private class InnerViewHolder extends BaseRecyclerViewHolder> { 116 | 117 | private PhotoContents imageContainer; 118 | private InnerContainerAdapter adapter; 119 | private TextView mNoPhoto; 120 | 121 | public InnerViewHolder(View itemView, int viewType) { 122 | super(itemView, viewType); 123 | imageContainer = itemView.findViewById(R.id.photocontents); 124 | imageContainer.setLayoutManager(new NineGridLayoutManager(8)); 125 | mNoPhoto = itemView.findViewById(R.id.tv_no_photo); 126 | } 127 | 128 | @Override 129 | public void onBindData(List data, int position) { 130 | mNoPhoto.setVisibility(ToolUtil.isListEmpty(data) ? View.VISIBLE : View.GONE); 131 | if (adapter == null) { 132 | adapter = new InnerContainerAdapter(getContext(), data); 133 | imageContainer.setAdapter(adapter); 134 | } else { 135 | adapter.updateData(data); 136 | } 137 | } 138 | 139 | private class InnerContainerAdapter extends PhotoContents.Adapter { 140 | 141 | private List datas; 142 | 143 | InnerContainerAdapter(Context context, List datas) { 144 | this.datas = new ArrayList<>(); 145 | this.datas.addAll(datas); 146 | } 147 | 148 | 149 | public void updateData(List datas) { 150 | this.datas.clear(); 151 | this.datas.addAll(datas); 152 | notifyDataSetChanged(); 153 | } 154 | 155 | public void addMore(List datas) { 156 | this.datas.addAll(datas); 157 | notifyDataSetChanged(); 158 | } 159 | 160 | @Override 161 | public int getItemCount() { 162 | return datas.size(); 163 | } 164 | 165 | @Override 166 | public PhotoContents.ViewHolder onCreateViewHolder(ViewGroup parent, int position) { 167 | return getItemCount() == 1 ? 168 | new SingleViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_img_single, parent, false)) 169 | : 170 | new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_img, parent, false)); 171 | } 172 | 173 | @Override 174 | public void onBindViewHolder(PhotoContents.ViewHolder viewHolder, int position) { 175 | ImageView iv = null; 176 | if (viewHolder instanceof SingleViewHolder) { 177 | iv = ((SingleViewHolder) viewHolder).iv; 178 | } else if (viewHolder instanceof ViewHolder) { 179 | iv = ((ViewHolder) viewHolder).iv; 180 | } 181 | if (iv == null) return; 182 | 183 | ImageLoadManager.INSTANCE.loadImage(iv, datas.get(position)); 184 | } 185 | } 186 | 187 | class SingleViewHolder extends PhotoContents.ViewHolder { 188 | ImageView iv; 189 | 190 | SingleViewHolder(View rootView) { 191 | super(rootView); 192 | iv = findViewById(R.id.iv_img); 193 | } 194 | } 195 | 196 | class ViewHolder extends PhotoContents.ViewHolder { 197 | ImageView iv; 198 | 199 | ViewHolder(View rootView) { 200 | super(rootView); 201 | iv = findViewById(R.id.iv_img); 202 | } 203 | } 204 | } 205 | } 206 | } 207 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/ForceClickImageView.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | import android.content.Context; 4 | import android.content.res.TypedArray; 5 | import android.graphics.Canvas; 6 | import android.graphics.Color; 7 | import android.graphics.Rect; 8 | import android.graphics.drawable.ColorDrawable; 9 | import android.graphics.drawable.Drawable; 10 | import android.graphics.drawable.StateListDrawable; 11 | import android.util.AttributeSet; 12 | import android.widget.ImageView; 13 | 14 | /** 15 | * Created by 大灯泡 on 2016/4/11. 16 | * 朋友圈的imageview,包含点击动作 17 | */ 18 | public class ForceClickImageView extends ImageView { 19 | private static final String TAG = "ForceClickImageView"; 20 | //前景层 21 | private Drawable mForegroundDrawable; 22 | private Rect mCachedBounds = new Rect(); 23 | 24 | public ForceClickImageView(Context context) { 25 | this(context, null); 26 | } 27 | 28 | public ForceClickImageView(Context context, AttributeSet attrs) { 29 | this(context, attrs, 0); 30 | } 31 | 32 | public ForceClickImageView(Context context, AttributeSet attrs, int defStyleAttr) { 33 | super(context, attrs, defStyleAttr); 34 | init(context, attrs, true); 35 | setFocusable(true); 36 | } 37 | 38 | /** 39 | * 初始化 40 | */ 41 | private void init(Context context, AttributeSet attrs, boolean needDefaultForceGroundColor) { 42 | final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ForceClickImageView); 43 | mForegroundDrawable = a.getDrawable(R.styleable.ForceClickImageView_foregroundColor); 44 | if (mForegroundDrawable instanceof ColorDrawable || (attrs == null && needDefaultForceGroundColor)) { 45 | int foreGroundColor = a.getColor(R.styleable.ForceClickImageView_foregroundColor, 0x882b2b2b); 46 | mForegroundDrawable = new StateListDrawable(); 47 | ColorDrawable forceDrawable = new ColorDrawable(foreGroundColor); 48 | ColorDrawable normalDrawable = new ColorDrawable(Color.TRANSPARENT); 49 | ((StateListDrawable) mForegroundDrawable).addState(new int[]{android.R.attr.state_pressed}, forceDrawable); 50 | ((StateListDrawable) mForegroundDrawable).addState(new int[]{android.R.attr.state_focused}, forceDrawable); 51 | ((StateListDrawable) mForegroundDrawable).addState(new int[]{android.R.attr.state_enabled}, normalDrawable); 52 | ((StateListDrawable) mForegroundDrawable).addState(new int[]{}, normalDrawable); 53 | } 54 | if (mForegroundDrawable != null) { 55 | mForegroundDrawable.setCallback(this); 56 | } 57 | a.recycle(); 58 | } 59 | 60 | 61 | @Override 62 | protected void drawableStateChanged() { 63 | super.drawableStateChanged(); 64 | if (mForegroundDrawable != null && mForegroundDrawable.isStateful()) { 65 | mForegroundDrawable.setState(getDrawableState()); 66 | invalidate(); 67 | } 68 | } 69 | 70 | 71 | @Override 72 | protected void onDraw(Canvas canvas) { 73 | super.onDraw(canvas); 74 | if (mForegroundDrawable != null) { 75 | if (getDrawable()!=null) { 76 | mForegroundDrawable.setBounds(getDrawable().getBounds()); 77 | }else { 78 | mForegroundDrawable.setBounds(mCachedBounds); 79 | } 80 | mForegroundDrawable.draw(canvas); 81 | } 82 | } 83 | 84 | @Override 85 | protected void onSizeChanged(int w, int h, int oldw, int oldh) { 86 | super.onSizeChanged(w, h, oldw, oldh); 87 | if (mForegroundDrawable != null) mCachedBounds.set(0, 0, w, h); 88 | } 89 | 90 | } 91 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/ImageLoadManager.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | import android.annotation.SuppressLint; 4 | import android.app.Activity; 5 | import android.content.Context; 6 | import android.graphics.Bitmap; 7 | import android.graphics.drawable.Drawable; 8 | import android.media.MediaMetadataRetriever; 9 | import android.net.Uri; 10 | import android.support.annotation.DrawableRes; 11 | import android.support.annotation.NonNull; 12 | import android.support.annotation.Nullable; 13 | import android.support.annotation.Px; 14 | import android.util.Log; 15 | import android.view.View; 16 | import android.widget.ImageView; 17 | 18 | import com.bumptech.glide.Glide; 19 | import com.bumptech.glide.RequestBuilder; 20 | import com.bumptech.glide.RequestManager; 21 | import com.bumptech.glide.load.engine.DiskCacheStrategy; 22 | import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; 23 | import com.bumptech.glide.load.resource.bitmap.BitmapTransformation; 24 | import com.bumptech.glide.load.resource.bitmap.CenterCrop; 25 | import com.bumptech.glide.load.resource.bitmap.CenterInside; 26 | import com.bumptech.glide.load.resource.bitmap.FitCenter; 27 | import com.bumptech.glide.request.RequestOptions; 28 | import com.bumptech.glide.request.target.CustomTarget; 29 | import com.bumptech.glide.request.transition.Transition; 30 | 31 | import java.io.File; 32 | import java.security.MessageDigest; 33 | import java.util.concurrent.ExecutionException; 34 | 35 | import razerdp.github.com.demo.utils.rx.RxCall; 36 | import razerdp.github.com.demo.utils.rx.RxHelper; 37 | import razerdp.github.com.demo.utils.rx.RxTaskCall; 38 | 39 | import static com.bumptech.glide.load.resource.bitmap.VideoDecoder.FRAME_OPTION; 40 | 41 | /** 42 | * Created by 大灯泡 on 2019/4/10. 43 | *

44 | * 图片加载单例 啊啊啊啊。。。好多重载,这时候有个kotlin多好啊噗 45 | */ 46 | 47 | public enum ImageLoadManager { 48 | INSTANCE; 49 | private final GlideDispatcher DISPATCHER = new GlideDispatcher(); 50 | 51 | private static RequestOptions DEFAULT_REQUEST_OPTIONS = new RequestOptions() 52 | .placeholder(R.drawable.ic_loading) 53 | .error(R.drawable.ic_error); 54 | 55 | public void clearMemory(Context context) { 56 | Glide.get(context).clearMemory(); 57 | } 58 | 59 | public static Glide getGlide(Context context) { 60 | return Glide.get(context); 61 | } 62 | 63 | public void loadImage(View target, Object from) { 64 | loadImage(target, from, R.drawable.ic_loading, R.drawable.ic_error); 65 | } 66 | 67 | public void loadImage(View target, Object from, @DrawableRes int errorImage) { 68 | loadImage(target, from, R.drawable.ic_loading, errorImage); 69 | } 70 | 71 | public void loadImage(View target, Object from, @DrawableRes int loadingImg, @DrawableRes int errorImage) { 72 | loadImage(target, from, 0, 0, loadingImg, errorImage); 73 | } 74 | 75 | public void loadImage(View target, Object from, int width, int hegith, @DrawableRes int loadingImg, @DrawableRes int errorImage) { 76 | RequestOptions options = getOption().placeholder(loadingImg).error(errorImage); 77 | if (width != 0 && hegith != 0) { 78 | options = options.override(width, hegith); 79 | } 80 | loadImage(target, from, options); 81 | } 82 | 83 | public void loadImage(View target, String from, @DrawableRes int loadingImg, @DrawableRes int errorImage, boolean cache) { 84 | RequestOptions options = getOption() 85 | .placeholder(loadingImg) 86 | .error(errorImage) 87 | .skipMemoryCache(!cache) 88 | .diskCacheStrategy(cache ? DiskCacheStrategy.AUTOMATIC : DiskCacheStrategy.NONE); 89 | loadImage(target, from, options); 90 | } 91 | 92 | public RequestOptions getOption() { 93 | try { 94 | return DEFAULT_REQUEST_OPTIONS.clone(); 95 | } catch (Exception e) { 96 | return new RequestOptions() 97 | .placeholder(R.drawable.ic_loading) 98 | .error(R.drawable.ic_error); 99 | } 100 | } 101 | 102 | @SuppressLint("CheckResult") 103 | public void loadImage(View target, Object from, RequestOptions options) { 104 | DISPATCHER.getGlide(target, from).apply(options).into((ImageView) target); 105 | } 106 | 107 | public void loadRoundImage(ImageView target, Object from, @Px int radius) { 108 | loadRoundImage(target, from, RoundedCornersTransformation.CornerType.ALL, radius); 109 | } 110 | 111 | public void loadRoundImage(ImageView target, Object from, RoundedCornersTransformation.CornerType type, @Px int radius) { 112 | loadRoundImage(target, from, R.drawable.ic_error, R.drawable.ic_error, type, radius); 113 | } 114 | 115 | 116 | public void loadRoundImage(ImageView target, Object from, @DrawableRes int loadingImg, @DrawableRes int errorImage, RoundedCornersTransformation.CornerType type, @Px int radius) { 117 | RequestOptions options = getOption() 118 | .placeholder(loadingImg) 119 | .error(errorImage); 120 | if (target.getScaleType() == ImageView.ScaleType.CENTER_CROP) { 121 | options.transform(new CenterCrop(), new RoundedCornersTransformation(radius, 0, type)); 122 | } else if (target.getScaleType() == ImageView.ScaleType.CENTER_INSIDE) { 123 | options.transform(new CenterInside(), new RoundedCornersTransformation(radius, 0, type)); 124 | } else if (target.getScaleType() == ImageView.ScaleType.FIT_CENTER) { 125 | options.transform(new FitCenter(), new RoundedCornersTransformation(radius, 0, type)); 126 | } else { 127 | options.transform(new RoundedCornersTransformation(radius, 0, type)); 128 | } 129 | loadImage(target, from, options); 130 | } 131 | 132 | public void loadBitmap(Context context, String imageUrl, final OnLoadBitmapListener listener) { 133 | Log.i("下载图片", "url=" + imageUrl); 134 | RequestOptions options = DEFAULT_REQUEST_OPTIONS.diskCacheStrategy(DiskCacheStrategy.ALL).skipMemoryCache(false); 135 | Glide.with(context) 136 | .asBitmap() 137 | .load(imageUrl) 138 | .apply(options) 139 | .into(new CustomTarget() { 140 | @Override 141 | public void onLoadFailed(@Nullable Drawable errorDrawable) { 142 | super.onLoadFailed(errorDrawable); 143 | if (listener != null) { 144 | listener.onFailed(new IllegalArgumentException("download failed")); 145 | } 146 | } 147 | 148 | @Override 149 | public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition transition) { 150 | if (listener != null) { 151 | listener.onSuccess(resource); 152 | } 153 | } 154 | 155 | @Override 156 | public void onLoadCleared(@Nullable Drawable placeholder) { 157 | 158 | } 159 | }); 160 | } 161 | 162 | public void loadVideoScreenshot(final Context context, String uri, ImageView imageView, long frameTimeMicros) { 163 | RequestOptions requestOptions = RequestOptions.frameOf(frameTimeMicros) 164 | .set(FRAME_OPTION, MediaMetadataRetriever.OPTION_CLOSEST) 165 | .transform(new BitmapTransformation() { 166 | @Override 167 | protected Bitmap transform(@NonNull BitmapPool pool, @NonNull Bitmap toTransform, int outWidth, int outHeight) { 168 | return toTransform; 169 | } 170 | 171 | @Override 172 | public void updateDiskCacheKey(MessageDigest messageDigest) { 173 | try { 174 | messageDigest.update((context.getPackageName() + "RotateTransform").getBytes("utf-8")); 175 | } catch (Exception e) { 176 | e.printStackTrace(); 177 | } 178 | } 179 | }); 180 | Glide.with(context).load(uri).apply(requestOptions).into(imageView); 181 | } 182 | 183 | public interface OnLoadBitmapListener { 184 | void onSuccess(Bitmap bitmap); 185 | 186 | void onFailed(Exception e); 187 | } 188 | 189 | public void getCache(final Object o, final RxCall cb) { 190 | if (o == null || cb == null) return; 191 | if (o instanceof File) { 192 | cb.onCall(((File) o).getAbsolutePath()); 193 | return; 194 | } 195 | RxHelper.runOnBackground(new RxTaskCall() { 196 | @Override 197 | public String doInBackground() { 198 | File file = null; 199 | try { 200 | file = Glide.with(AppContext.getAppContext()).asFile().onlyRetrieveFromCache(true).load(o).submit().get(); 201 | } catch (ExecutionException e) { 202 | e.printStackTrace(); 203 | } catch (InterruptedException e) { 204 | e.printStackTrace(); 205 | } 206 | return (file != null && file.exists()) ? file.getAbsolutePath() : null; 207 | } 208 | 209 | @Override 210 | public void onResult(String result) { 211 | cb.onCall(result); 212 | } 213 | }); 214 | 215 | } 216 | 217 | private class GlideDispatcher { 218 | 219 | RequestManager getRequestManager(View v, Object o) { 220 | RequestManager manager; 221 | if (v.getContext() instanceof Activity) { 222 | manager = Glide.with((Activity) v.getContext()); 223 | } else { 224 | manager = Glide.with(v.getContext() == null ? AppContext.getAppContext() : v.getContext()); 225 | } 226 | return manager; 227 | } 228 | 229 | RequestBuilder getGlide(View v, Object o) { 230 | RequestManager manager = getRequestManager(v, o); 231 | if (o instanceof String) { 232 | return getGlideString(manager, (String) o); 233 | } else if (o instanceof Integer) { 234 | return getGlideInteger(manager, (Integer) o); 235 | } else if (o instanceof Uri) { 236 | return getGlideUri(manager, (Uri) o); 237 | } else if (o instanceof File) { 238 | return getGlideFile(manager, (File) o); 239 | } 240 | return getGlideString(manager, ""); 241 | } 242 | 243 | private RequestBuilder getGlideString(RequestManager manager, String str) { 244 | return manager.load(str); 245 | } 246 | 247 | private RequestBuilder getGlideInteger(RequestManager manager, int source) { 248 | return manager.load(source); 249 | } 250 | 251 | private RequestBuilder getGlideUri(RequestManager manager, Uri uri) { 252 | return manager.load(uri); 253 | } 254 | 255 | private RequestBuilder getGlideFile(RequestManager manager, File file) { 256 | return manager.load(file); 257 | } 258 | } 259 | 260 | public static abstract class OnLoadBitmapListenerAdapter implements OnLoadBitmapListener { 261 | 262 | @Override 263 | public void onSuccess(Bitmap bitmap) { 264 | 265 | } 266 | 267 | @Override 268 | public void onFailed(Exception e) { 269 | 270 | } 271 | } 272 | 273 | } 274 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/PhotoContentsDemoApp.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | 6 | 7 | /** 8 | * Created by 大灯泡 on 2016/11/28. 9 | */ 10 | 11 | public class PhotoContentsDemoApp extends Application { 12 | private static Context CONTEXT; 13 | 14 | @Override 15 | public void onCreate() { 16 | super.onCreate(); 17 | CONTEXT = PhotoContentsDemoApp.this.getApplicationContext(); 18 | } 19 | 20 | public static Context getAppContext(){ 21 | return CONTEXT; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/RoundedCornersTransformation.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | /** 4 | * https://github.com/wasabeef/glide-transformations/blob/master/transformations/src/main/java/jp/wasabeef/glide/transformations/RoundedCornersTransformation.java 5 | */ 6 | 7 | import android.graphics.Bitmap; 8 | import android.graphics.BitmapShader; 9 | import android.graphics.Canvas; 10 | import android.graphics.Paint; 11 | import android.graphics.RectF; 12 | import android.graphics.Shader; 13 | import android.support.annotation.NonNull; 14 | 15 | import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; 16 | import com.bumptech.glide.load.resource.bitmap.BitmapTransformation; 17 | 18 | import java.security.MessageDigest; 19 | 20 | public class RoundedCornersTransformation extends BitmapTransformation { 21 | 22 | private static final int VERSION = 1; 23 | private static final String ID = "jp.wasabeef.glide.transformations.RoundedCornersTransformation." + VERSION; 24 | 25 | @Override 26 | protected Bitmap transform(@NonNull BitmapPool pool, @NonNull Bitmap toTransform, int outWidth, int outHeight) { 27 | int width = toTransform.getWidth(); 28 | int height = toTransform.getHeight(); 29 | 30 | Bitmap bitmap = pool.get(width, height, Bitmap.Config.ARGB_8888); 31 | bitmap.setHasAlpha(true); 32 | 33 | Canvas canvas = new Canvas(bitmap); 34 | Paint paint = new Paint(); 35 | paint.setAntiAlias(true); 36 | paint.setShader(new BitmapShader(toTransform, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)); 37 | drawRoundRect(canvas, paint, width, height); 38 | return bitmap; 39 | } 40 | 41 | public enum CornerType { 42 | ALL, 43 | TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, 44 | TOP, BOTTOM, LEFT, RIGHT, 45 | OTHER_TOP_LEFT, OTHER_TOP_RIGHT, OTHER_BOTTOM_LEFT, OTHER_BOTTOM_RIGHT, 46 | DIAGONAL_FROM_TOP_LEFT, DIAGONAL_FROM_TOP_RIGHT 47 | } 48 | 49 | private int radius; 50 | private int diameter; 51 | private int margin; 52 | private CornerType cornerType; 53 | 54 | public RoundedCornersTransformation(int radius, int margin) { 55 | this(radius, margin, CornerType.ALL); 56 | } 57 | 58 | public RoundedCornersTransformation(int radius, int margin, CornerType cornerType) { 59 | this.radius = radius; 60 | this.diameter = this.radius * 2; 61 | this.margin = margin; 62 | this.cornerType = cornerType; 63 | } 64 | 65 | private void drawRoundRect(Canvas canvas, Paint paint, float width, float height) { 66 | float right = width - margin; 67 | float bottom = height - margin; 68 | 69 | switch (cornerType) { 70 | case ALL: 71 | canvas.drawRoundRect(new RectF(margin, margin, right, bottom), radius, radius, paint); 72 | break; 73 | case TOP_LEFT: 74 | drawTopLeftRoundRect(canvas, paint, right, bottom); 75 | break; 76 | case TOP_RIGHT: 77 | drawTopRightRoundRect(canvas, paint, right, bottom); 78 | break; 79 | case BOTTOM_LEFT: 80 | drawBottomLeftRoundRect(canvas, paint, right, bottom); 81 | break; 82 | case BOTTOM_RIGHT: 83 | drawBottomRightRoundRect(canvas, paint, right, bottom); 84 | break; 85 | case TOP: 86 | drawTopRoundRect(canvas, paint, right, bottom); 87 | break; 88 | case BOTTOM: 89 | drawBottomRoundRect(canvas, paint, right, bottom); 90 | break; 91 | case LEFT: 92 | drawLeftRoundRect(canvas, paint, right, bottom); 93 | break; 94 | case RIGHT: 95 | drawRightRoundRect(canvas, paint, right, bottom); 96 | break; 97 | case OTHER_TOP_LEFT: 98 | drawOtherTopLeftRoundRect(canvas, paint, right, bottom); 99 | break; 100 | case OTHER_TOP_RIGHT: 101 | drawOtherTopRightRoundRect(canvas, paint, right, bottom); 102 | break; 103 | case OTHER_BOTTOM_LEFT: 104 | drawOtherBottomLeftRoundRect(canvas, paint, right, bottom); 105 | break; 106 | case OTHER_BOTTOM_RIGHT: 107 | drawOtherBottomRightRoundRect(canvas, paint, right, bottom); 108 | break; 109 | case DIAGONAL_FROM_TOP_LEFT: 110 | drawDiagonalFromTopLeftRoundRect(canvas, paint, right, bottom); 111 | break; 112 | case DIAGONAL_FROM_TOP_RIGHT: 113 | drawDiagonalFromTopRightRoundRect(canvas, paint, right, bottom); 114 | break; 115 | default: 116 | canvas.drawRoundRect(new RectF(margin, margin, right, bottom), radius, radius, paint); 117 | break; 118 | } 119 | } 120 | 121 | private void drawTopLeftRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 122 | canvas.drawRoundRect(new RectF(margin, margin, margin + diameter, margin + diameter), radius, 123 | radius, paint); 124 | canvas.drawRect(new RectF(margin, margin + radius, margin + radius, bottom), paint); 125 | canvas.drawRect(new RectF(margin + radius, margin, right, bottom), paint); 126 | } 127 | 128 | private void drawTopRightRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 129 | canvas.drawRoundRect(new RectF(right - diameter, margin, right, margin + diameter), radius, 130 | radius, paint); 131 | canvas.drawRect(new RectF(margin, margin, right - radius, bottom), paint); 132 | canvas.drawRect(new RectF(right - radius, margin + radius, right, bottom), paint); 133 | } 134 | 135 | private void drawBottomLeftRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 136 | canvas.drawRoundRect(new RectF(margin, bottom - diameter, margin + diameter, bottom), radius, 137 | radius, paint); 138 | canvas.drawRect(new RectF(margin, margin, margin + diameter, bottom - radius), paint); 139 | canvas.drawRect(new RectF(margin + radius, margin, right, bottom), paint); 140 | } 141 | 142 | private void drawBottomRightRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 143 | canvas.drawRoundRect(new RectF(right - diameter, bottom - diameter, right, bottom), radius, 144 | radius, paint); 145 | canvas.drawRect(new RectF(margin, margin, right - radius, bottom), paint); 146 | canvas.drawRect(new RectF(right - radius, margin, right, bottom - radius), paint); 147 | } 148 | 149 | private void drawTopRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 150 | canvas.drawRoundRect(new RectF(margin, margin, right, margin + diameter), radius, radius, 151 | paint); 152 | canvas.drawRect(new RectF(margin, margin + radius, right, bottom), paint); 153 | } 154 | 155 | private void drawBottomRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 156 | canvas.drawRoundRect(new RectF(margin, bottom - diameter, right, bottom), radius, radius, 157 | paint); 158 | canvas.drawRect(new RectF(margin, margin, right, bottom - radius), paint); 159 | } 160 | 161 | private void drawLeftRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 162 | canvas.drawRoundRect(new RectF(margin, margin, margin + diameter, bottom), radius, radius, 163 | paint); 164 | canvas.drawRect(new RectF(margin + radius, margin, right, bottom), paint); 165 | } 166 | 167 | private void drawRightRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 168 | canvas.drawRoundRect(new RectF(right - diameter, margin, right, bottom), radius, radius, paint); 169 | canvas.drawRect(new RectF(margin, margin, right - radius, bottom), paint); 170 | } 171 | 172 | private void drawOtherTopLeftRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 173 | canvas.drawRoundRect(new RectF(margin, bottom - diameter, right, bottom), radius, radius, 174 | paint); 175 | canvas.drawRoundRect(new RectF(right - diameter, margin, right, bottom), radius, radius, paint); 176 | canvas.drawRect(new RectF(margin, margin, right - radius, bottom - radius), paint); 177 | } 178 | 179 | private void drawOtherTopRightRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 180 | canvas.drawRoundRect(new RectF(margin, margin, margin + diameter, bottom), radius, radius, 181 | paint); 182 | canvas.drawRoundRect(new RectF(margin, bottom - diameter, right, bottom), radius, radius, 183 | paint); 184 | canvas.drawRect(new RectF(margin + radius, margin, right, bottom - radius), paint); 185 | } 186 | 187 | private void drawOtherBottomLeftRoundRect(Canvas canvas, Paint paint, float right, float bottom) { 188 | canvas.drawRoundRect(new RectF(margin, margin, right, margin + diameter), radius, radius, 189 | paint); 190 | canvas.drawRoundRect(new RectF(right - diameter, margin, right, bottom), radius, radius, paint); 191 | canvas.drawRect(new RectF(margin, margin + radius, right - radius, bottom), paint); 192 | } 193 | 194 | private void drawOtherBottomRightRoundRect(Canvas canvas, Paint paint, float right, 195 | float bottom) { 196 | canvas.drawRoundRect(new RectF(margin, margin, right, margin + diameter), radius, radius, 197 | paint); 198 | canvas.drawRoundRect(new RectF(margin, margin, margin + diameter, bottom), radius, radius, 199 | paint); 200 | canvas.drawRect(new RectF(margin + radius, margin + radius, right, bottom), paint); 201 | } 202 | 203 | private void drawDiagonalFromTopLeftRoundRect(Canvas canvas, Paint paint, float right, 204 | float bottom) { 205 | canvas.drawRoundRect(new RectF(margin, margin, margin + diameter, margin + diameter), radius, 206 | radius, paint); 207 | canvas.drawRoundRect(new RectF(right - diameter, bottom - diameter, right, bottom), radius, 208 | radius, paint); 209 | canvas.drawRect(new RectF(margin, margin + radius, right - diameter, bottom), paint); 210 | canvas.drawRect(new RectF(margin + diameter, margin, right, bottom - radius), paint); 211 | } 212 | 213 | private void drawDiagonalFromTopRightRoundRect(Canvas canvas, Paint paint, float right, 214 | float bottom) { 215 | canvas.drawRoundRect(new RectF(right - diameter, margin, right, margin + diameter), radius, 216 | radius, paint); 217 | canvas.drawRoundRect(new RectF(margin, bottom - diameter, margin + diameter, bottom), radius, 218 | radius, paint); 219 | canvas.drawRect(new RectF(margin, margin, right - radius, bottom - radius), paint); 220 | canvas.drawRect(new RectF(margin + radius, margin + radius, right, bottom), paint); 221 | } 222 | 223 | @Override 224 | public String toString() { 225 | return "RoundedTransformation(radius=" + radius + ", margin=" + margin + ", diameter=" 226 | + diameter + ", cornerType=" + cornerType.name() + ")"; 227 | } 228 | 229 | @Override 230 | public boolean equals(Object o) { 231 | return o instanceof RoundedCornersTransformation && 232 | ((RoundedCornersTransformation) o).radius == radius && 233 | ((RoundedCornersTransformation) o).diameter == diameter && 234 | ((RoundedCornersTransformation) o).margin == margin && 235 | ((RoundedCornersTransformation) o).cornerType == cornerType; 236 | } 237 | 238 | @Override 239 | public int hashCode() { 240 | return ID.hashCode() + radius * 10000 + diameter * 1000 + margin * 100 + cornerType.ordinal() * 10; 241 | } 242 | 243 | @Override 244 | public void updateDiskCacheKey(@NonNull MessageDigest messageDigest) { 245 | messageDigest.update((ID + radius + diameter + margin + cornerType).getBytes(CHARSET)); 246 | } 247 | } 248 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/TestServerData.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | 4 | import java.util.ArrayList; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | import java.util.Random; 8 | import java.util.regex.Matcher; 9 | import java.util.regex.Pattern; 10 | 11 | import razerdp.github.com.demo.utils.FileUtil; 12 | import razerdp.github.com.demo.utils.ToolUtil; 13 | 14 | /** 15 | * Created by 大灯泡 on 2019/4/10 16 | *

17 | * Description:内测版测试数据 18 | */ 19 | public class TestServerData { 20 | 21 | private static List pics; 22 | private static List avatars; 23 | 24 | 25 | public static String getPicUrl() { 26 | if (ToolUtil.isListEmpty(pics)) { 27 | Pattern pattern = Pattern.compile("(https?|ftp|file)://(?!(\\.jpg|\\.png|\\.gif)).+?(\\.jpg|\\.png|\\.gif)"); 28 | pics = new ArrayList<>(); 29 | String result = FileUtil.getFromAssets("pics"); 30 | Matcher matcher = pattern.matcher(result); 31 | while (matcher.find()) { 32 | pics.add(matcher.group(0)); 33 | } 34 | } 35 | Random random = new Random(); 36 | return pics.get(random.nextInt(pics.size())); 37 | } 38 | 39 | public static String getAvatar() { 40 | if (ToolUtil.isListEmpty(avatars)) { 41 | Pattern pattern = Pattern.compile("(https?|ftp|file)://(?!(\\.jpg|\\.png|\\.gif)).+?(\\.jpg|\\.png|\\.gif)"); 42 | avatars = new ArrayList<>(); 43 | String result = FileUtil.getFromAssets("avatars"); 44 | Matcher matcher = pattern.matcher(result); 45 | while (matcher.find()) { 46 | avatars.add(matcher.group(0)); 47 | } 48 | } 49 | Random random = new Random(); 50 | return avatars.get(random.nextInt(avatars.size())); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/baseadapter/BaseAbsViewAdapter.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.baseadapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.BaseAdapter; 8 | 9 | import java.util.ArrayList; 10 | import java.util.List; 11 | 12 | /** 13 | * Created by 大灯泡 on 2016/11/9. 14 | * 15 | * absview的adapter 16 | */ 17 | 18 | public abstract class BaseAbsViewAdapter extends BaseAdapter { 19 | protected List datas; 20 | protected LayoutInflater mInflater; 21 | protected Context mContext; 22 | 23 | public BaseAbsViewAdapter(Context context, List datas) { 24 | mContext = context; 25 | this.datas=new ArrayList<>(); 26 | this.datas.addAll(datas); 27 | mInflater= LayoutInflater.from(context); 28 | } 29 | 30 | 31 | @Override 32 | public int getCount() { 33 | return datas == null ? 0 : datas.size(); 34 | } 35 | 36 | @Override 37 | public T getItem(int position) { 38 | return datas.get(position); 39 | } 40 | 41 | @Override 42 | public long getItemId(int position) { 43 | return position; 44 | } 45 | 46 | @Override 47 | public View getView(int position, View convertView, ViewGroup parent) { 48 | V holder = null; 49 | if (convertView == null) { 50 | convertView = mInflater.inflate(getLayoutRes(),parent,false); 51 | holder = initViewHolder(); 52 | holder.onInFlate(convertView); 53 | convertView.setTag(holder); 54 | } 55 | else { 56 | holder = (V) convertView.getTag(); 57 | } 58 | onBindData(position, getItem(position), holder); 59 | return convertView; 60 | } 61 | 62 | public void updateData(List datas){ 63 | this.datas.clear(); 64 | this.datas.addAll(datas); 65 | notifyDataSetChanged(); 66 | } 67 | 68 | public abstract int getLayoutRes(); 69 | 70 | public abstract V initViewHolder(); 71 | 72 | public abstract void onBindData(int position, T data, V holder); 73 | } 74 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/baseadapter/BaseAbsViewHolder.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.baseadapter; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * Created by 大灯泡 on 2016/11/9. 7 | */ 8 | 9 | public interface BaseAbsViewHolder { 10 | void onInFlate(View v); 11 | } 12 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/baseadapter/BaseRecyclerViewAdapter.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.baseadapter; 2 | 3 | import android.content.Context; 4 | import android.support.annotation.NonNull; 5 | import android.support.v7.widget.RecyclerView; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | import java.util.ArrayList; 11 | import java.util.List; 12 | 13 | import razerdp.github.com.demo.R; 14 | import razerdp.github.com.demo.utils.ToolUtil; 15 | 16 | 17 | /** 18 | * Created by 大灯泡 on 2016/11/1. 19 | *

20 | * 抽象的adapter 21 | */ 22 | 23 | public abstract class BaseRecyclerViewAdapter extends RecyclerView.Adapter> { 24 | 25 | protected Context context; 26 | protected List datas; 27 | protected LayoutInflater mInflater; 28 | 29 | private OnRecyclerViewItemClickListener onRecyclerViewItemClickListener; 30 | private OnRecyclerViewLongItemClickListener onRecyclerViewLongItemClickListener; 31 | 32 | public BaseRecyclerViewAdapter(@NonNull Context context, @NonNull List datas) { 33 | this.context = context; 34 | this.datas = new ArrayList<>(); 35 | if (!ToolUtil.isListEmpty(datas)) 36 | this.datas.addAll(datas); 37 | mInflater = LayoutInflater.from(context); 38 | } 39 | 40 | @Override 41 | public int getItemViewType(int position) { 42 | return getViewType(position, datas.get(position)); 43 | } 44 | 45 | @Override 46 | public BaseRecyclerViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 47 | BaseRecyclerViewHolder holder = null; 48 | if (getLayoutResId(viewType) != 0) { 49 | View rootView = mInflater.inflate(getLayoutResId(viewType), parent, false); 50 | holder = getViewHolder(parent, rootView, viewType); 51 | } else { 52 | holder = getViewHolder(parent, null, viewType); 53 | } 54 | setUpItemEvent(holder); 55 | return holder; 56 | } 57 | 58 | @Override 59 | public void onBindViewHolder(BaseRecyclerViewHolder holder, int position) { 60 | T data = datas.get(position); 61 | holder.itemView.setTag(R.id.recycler_view_tag, data); 62 | holder.onBindData(data, position); 63 | onBindData(holder, data, position); 64 | } 65 | 66 | private void setUpItemEvent(final BaseRecyclerViewHolder holder) { 67 | if (onRecyclerViewItemClickListener != null) { 68 | holder.itemView.setOnClickListener(new View.OnClickListener() { 69 | @Override 70 | public void onClick(View v) { 71 | //这个获取位置的方法,防止添加删除导致位置不变 72 | int layoutPosition = holder.getAdapterPosition(); 73 | onRecyclerViewItemClickListener.onItemClick(holder.itemView, 74 | layoutPosition, 75 | datas.get(layoutPosition)); 76 | } 77 | }); 78 | } 79 | if (onRecyclerViewLongItemClickListener != null) { 80 | //longclick 81 | holder.itemView.setOnLongClickListener(new View.OnLongClickListener() { 82 | @Override 83 | public boolean onLongClick(View v) { 84 | int layoutPosition = holder.getAdapterPosition(); 85 | onRecyclerViewLongItemClickListener.onItemLongClick(holder.itemView, 86 | layoutPosition, 87 | datas.get(layoutPosition)); 88 | return false; 89 | } 90 | }); 91 | } 92 | } 93 | 94 | @Override 95 | public int getItemCount() { 96 | return datas == null ? 0 : datas.size(); 97 | } 98 | 99 | public void updateData(List datas) { 100 | this.datas.clear(); 101 | this.datas.addAll(datas); 102 | notifyDataSetChanged(); 103 | } 104 | 105 | public void addMore(List datas) { 106 | if (!ToolUtil.isListEmpty(datas)) { 107 | int lastDataSize = this.datas.size(); 108 | this.datas.addAll(datas); 109 | notifyItemRangeChanged(lastDataSize, datas.size()); 110 | } 111 | } 112 | 113 | public void addData(int pos, @NonNull T data) { 114 | if (datas != null) { 115 | datas.add(pos, data); 116 | notifyItemInserted(pos); 117 | } 118 | } 119 | 120 | public void addData(@NonNull T data) { 121 | if (datas != null) { 122 | datas.add(data); 123 | notifyItemInserted(datas.size() - 1); 124 | } 125 | } 126 | 127 | public void deleteData(int pos) { 128 | if (datas != null && datas.size() > pos) { 129 | datas.remove(pos); 130 | notifyItemRemoved(pos); 131 | } 132 | } 133 | 134 | protected abstract int getViewType(int position, @NonNull T data); 135 | 136 | protected abstract int getLayoutResId(int viewType); 137 | 138 | protected abstract BaseRecyclerViewHolder getViewHolder(ViewGroup parent, View inflatedView, int viewType); 139 | 140 | protected void onBindData(BaseRecyclerViewHolder holder, T data, int position) { 141 | 142 | } 143 | 144 | public OnRecyclerViewItemClickListener getOnRecyclerViewItemClickListener() { 145 | return onRecyclerViewItemClickListener; 146 | } 147 | 148 | public void setOnRecyclerViewItemClickListener(OnRecyclerViewItemClickListener onRecyclerViewItemClickListener) { 149 | this.onRecyclerViewItemClickListener = onRecyclerViewItemClickListener; 150 | } 151 | 152 | public OnRecyclerViewLongItemClickListener getOnRecyclerViewLongItemClickListener() { 153 | return onRecyclerViewLongItemClickListener; 154 | } 155 | 156 | public void setOnRecyclerViewLongItemClickListener(OnRecyclerViewLongItemClickListener onRecyclerViewLongItemClickListener) { 157 | this.onRecyclerViewLongItemClickListener = onRecyclerViewLongItemClickListener; 158 | } 159 | } 160 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/baseadapter/BaseRecyclerViewHolder.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.baseadapter; 2 | 3 | import android.content.Context; 4 | import android.support.v7.widget.RecyclerView; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | 9 | /** 10 | * Created by 大灯泡 on 2016/11/1. 11 | *

12 | * 对viewholder的封装 13 | */ 14 | 15 | public abstract class BaseRecyclerViewHolder extends RecyclerView.ViewHolder { 16 | 17 | private int viewType; 18 | 19 | public BaseRecyclerViewHolder(Context context, ViewGroup viewGroup, int layoutResId) { 20 | super(LayoutInflater.from(context).inflate(layoutResId, viewGroup, false)); 21 | } 22 | 23 | public BaseRecyclerViewHolder(View itemView, int viewType) { 24 | super(itemView); 25 | this.viewType = viewType; 26 | } 27 | 28 | public abstract void onBindData(T data, int position); 29 | 30 | protected int getViewType() { 31 | return viewType; 32 | } 33 | 34 | protected Context getContext() { 35 | return itemView.getContext(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/baseadapter/OnRecyclerViewItemClickListener.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.baseadapter; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * Created by 大灯泡 on 2016/11/1. 7 | */ 8 | 9 | public interface OnRecyclerViewItemClickListener { 10 | void onItemClick(View v, int position, T data); 11 | } 12 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/baseadapter/OnRecyclerViewLongItemClickListener.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.baseadapter; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * Created by 大灯泡 on 2016/11/1. 7 | * 8 | */ 9 | 10 | public interface OnRecyclerViewLongItemClickListener { 11 | boolean onItemLongClick(View v, int position, T data); 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/FileUtil.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils; 2 | 3 | import java.io.InputStream; 4 | import java.nio.charset.StandardCharsets; 5 | 6 | import razerdp.github.com.demo.AppContext; 7 | 8 | public class FileUtil { 9 | public static String getFromAssets(String fileName) { 10 | String result = ""; 11 | try { 12 | InputStream in = AppContext.getResources().getAssets().open(fileName); 13 | byte[] buffered = new byte[in.available()]; 14 | in.read(buffered); 15 | result = new String(buffered, StandardCharsets.UTF_8); 16 | in.close(); 17 | } catch (Exception e) { 18 | e.printStackTrace(); 19 | } 20 | return result; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/RandomUtil.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils; 2 | 3 | import java.util.Random; 4 | 5 | /** 6 | * Created by 大灯泡 on 2019/6/28 7 | *

8 | * Description: 9 | */ 10 | public class RandomUtil { 11 | private static final String CHAR_LETTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; 12 | private static final String CHAR_NUMBER = "0123456789"; 13 | private static final String CHAR_ALL = CHAR_NUMBER + CHAR_LETTERS; 14 | 15 | /** 16 | * 产生长度为length的随机字符串(包括字母和数字) 17 | * 18 | * @param length 19 | * @return 20 | */ 21 | public static String randomString(int length) { 22 | StringBuilder sb = new StringBuilder(); 23 | Random random = new Random(); 24 | for (int i = 0; i < length; i++) { 25 | sb.append(CHAR_ALL.charAt(random.nextInt(CHAR_ALL.length()))); 26 | } 27 | return sb.toString(); 28 | } 29 | 30 | public static String randomNonNumberString(int length) { 31 | StringBuilder sb = new StringBuilder(); 32 | Random random = new Random(); 33 | for (int i = 0; i < length; i++) { 34 | sb.append(CHAR_LETTERS.charAt(random.nextInt(CHAR_LETTERS.length()))); 35 | } 36 | return sb.toString(); 37 | } 38 | 39 | public static String randomLowerNonNumberString(int length) { 40 | return randomNonNumberString(length).toLowerCase(); 41 | } 42 | 43 | public static String randomUpperNonNumberString(int length) { 44 | return randomNonNumberString(length).toUpperCase(); 45 | } 46 | 47 | public static int randomInt(int min, int max) { 48 | return new Random().nextInt(max - min + 1) + min; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/ToolUtil.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Created by 大灯泡 on 2016/10/27. 7 | */ 8 | 9 | public class ToolUtil { 10 | 11 | public static boolean isListEmpty(List datas) { 12 | return datas == null || datas.size() <= 0; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/UIHelper.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils; 2 | 3 | import android.content.Context; 4 | import android.graphics.Color; 5 | import android.os.Handler; 6 | import android.support.annotation.Nullable; 7 | import android.util.Log; 8 | import android.view.View; 9 | import android.view.inputmethod.InputMethodManager; 10 | import android.widget.EditText; 11 | import android.widget.Toast; 12 | 13 | import razerdp.github.com.demo.PhotoContentsDemoApp; 14 | 15 | /** 16 | * Created by 大灯泡 on 2016/10/26. 17 | *

18 | * ui工具类 19 | */ 20 | public class UIHelper { 21 | 22 | // =============================================================tools 23 | // methods 24 | 25 | /** 26 | * dip转px 27 | */ 28 | public static int dipToPx(float dip) { 29 | return (int) (dip * PhotoContentsDemoApp.getAppContext().getResources() 30 | .getDisplayMetrics().density + 0.5f); 31 | } 32 | 33 | /** 34 | * px转dip 35 | */ 36 | public static int pxToDip(float pxValue) { 37 | final float scale = PhotoContentsDemoApp.getAppContext().getResources() 38 | .getDisplayMetrics().density; 39 | return (int) (pxValue / scale + 0.5f); 40 | } 41 | 42 | /** 43 | * 将sp值转换为px值 44 | */ 45 | public static int sp2px(float spValue) { 46 | final float fontScale = PhotoContentsDemoApp.getAppContext().getResources() 47 | .getDisplayMetrics().scaledDensity; 48 | return (int) (spValue * fontScale + 0.5f); 49 | } 50 | 51 | /** 52 | * 获取屏幕分辨率:宽 53 | */ 54 | public static int getScreenWidthPix(@Nullable Context context) { 55 | if (context == null) context = PhotoContentsDemoApp.getAppContext(); 56 | int width = context.getResources().getDisplayMetrics().widthPixels; 57 | return width; 58 | } 59 | 60 | /** 61 | * 获取屏幕分辨率:高 62 | */ 63 | public static int getScreenHeightPix(@Nullable Context context) { 64 | if (context == null) context = PhotoContentsDemoApp.getAppContext(); 65 | int height = context.getResources().getDisplayMetrics().heightPixels; 66 | return height; 67 | } 68 | 69 | /** 70 | * 获取状态栏的高度 71 | */ 72 | public static int getStatusBarHeight(Context context) { 73 | int result = 0; 74 | int resourceId = context.getResources() 75 | .getIdentifier("status_bar_height", "dimen", "android"); 76 | if (resourceId > 0) { 77 | result = context.getResources() 78 | .getDimensionPixelSize(resourceId); 79 | } 80 | return result; 81 | } 82 | 83 | /** 84 | * 隐藏软键盘 85 | */ 86 | public static void hideInputMethod(View view) { 87 | try { 88 | InputMethodManager imm = (InputMethodManager) view.getContext() 89 | .getSystemService(Context.INPUT_METHOD_SERVICE); 90 | if (imm != null) { 91 | imm.hideSoftInputFromWindow(view.getWindowToken(), 0); 92 | } 93 | } catch (Exception e) { 94 | e.printStackTrace(); 95 | Log.e("error", e.toString()); 96 | } 97 | } 98 | 99 | public static void hideInputMethod(final View view, long delayMillis) { 100 | new Handler().postDelayed(new Runnable() { 101 | @Override 102 | public void run() { 103 | hideInputMethod(view); 104 | } 105 | }, delayMillis); 106 | } 107 | 108 | /** 109 | * 显示软键盘 110 | */ 111 | public static void showInputMethod(View view) { 112 | if (view != null && view instanceof EditText) view.requestFocus(); 113 | InputMethodManager imm = (InputMethodManager) view.getContext() 114 | .getSystemService(Context.INPUT_METHOD_SERVICE); 115 | if (imm != null) { 116 | imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT); 117 | } 118 | } 119 | 120 | /** 121 | * 显示软键盘 122 | */ 123 | public static void showInputMethod(Context context) { 124 | InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); 125 | imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS); 126 | } 127 | 128 | /** 129 | * 多少时间后显示软键盘 130 | */ 131 | public static void showInputMethod(final View view, long delayMillis) { 132 | if (view != null) 133 | // 显示输入法 134 | { 135 | view.postDelayed(new Runnable() { 136 | 137 | @Override 138 | public void run() { 139 | UIHelper.showInputMethod(view); 140 | } 141 | }, delayMillis); 142 | } 143 | } 144 | 145 | 146 | /** 147 | * Toast封装 148 | */ 149 | public static void ToastMessage(String msg) { 150 | Toast.makeText(PhotoContentsDemoApp.getAppContext(), msg, Toast.LENGTH_LONG).show(); 151 | } 152 | 153 | /** 154 | * ============================================================= 155 | * 资源工具 156 | */ 157 | 158 | public static int getResourceColor(int colorResId) { 159 | if (colorResId > 0) { 160 | return PhotoContentsDemoApp.getAppContext() 161 | .getResources() 162 | .getColor(colorResId); 163 | } else { 164 | return Color.TRANSPARENT; 165 | } 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/rx/DefaultLogThrowableConsumer.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils.rx; 2 | 3 | import android.util.Log; 4 | 5 | 6 | import io.reactivex.functions.Consumer; 7 | 8 | /** 9 | * Created by 大灯泡 on 2019/4/9. 10 | * 默认打印日志的错误consumer 11 | */ 12 | public final class DefaultLogThrowableConsumer implements Consumer { 13 | private String TAG = this.getClass().getSimpleName(); 14 | 15 | public DefaultLogThrowableConsumer() { 16 | } 17 | 18 | public DefaultLogThrowableConsumer(String TAG) { 19 | this.TAG = TAG; 20 | } 21 | 22 | @Override 23 | public void accept(Throwable throwable) throws Exception { 24 | Log.e(TAG, throwable.getMessage()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/rx/RxCall.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils.rx; 2 | 3 | /** 4 | * Created by 大灯泡 on 2018/5/24. 5 | */ 6 | public interface RxCall { 7 | 8 | void onCall(T data); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/rx/RxCallImpl.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils.rx; 2 | 3 | /** 4 | * Created by 大灯泡 on 2018/5/24. 5 | */ 6 | public abstract class RxCallImpl implements RxCall { 7 | T data; 8 | 9 | public RxCallImpl() { 10 | } 11 | 12 | public RxCallImpl(T data) { 13 | this.data = data; 14 | } 15 | 16 | public T getData() { 17 | return data; 18 | } 19 | 20 | public RxCallImpl setData(T data) { 21 | this.data = data; 22 | return this; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/rx/RxHelper.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils.rx; 2 | 3 | 4 | import android.support.annotation.NonNull; 5 | import android.widget.EditText; 6 | 7 | 8 | import java.util.concurrent.TimeUnit; 9 | 10 | import io.reactivex.Flowable; 11 | import io.reactivex.FlowableTransformer; 12 | import io.reactivex.Observable; 13 | import io.reactivex.ObservableEmitter; 14 | import io.reactivex.ObservableOnSubscribe; 15 | import io.reactivex.ObservableSource; 16 | import io.reactivex.ObservableTransformer; 17 | import io.reactivex.Single; 18 | import io.reactivex.SingleSource; 19 | import io.reactivex.SingleTransformer; 20 | import io.reactivex.android.schedulers.AndroidSchedulers; 21 | import io.reactivex.disposables.Disposable; 22 | import io.reactivex.functions.Consumer; 23 | import io.reactivex.schedulers.Schedulers; 24 | 25 | /** 26 | * Created by 大灯泡 on 2019/4/9. 27 | */ 28 | public class RxHelper { 29 | 30 | //-----------------------------------------transformer----------------------------------------- 31 | public static ObservableTransformer io_main() { 32 | 33 | return new ObservableTransformer() { 34 | 35 | @Override 36 | public ObservableSource apply(Observable upstream) { 37 | return upstream.subscribeOn(Schedulers.io()) 38 | .observeOn(AndroidSchedulers.mainThread()); 39 | } 40 | }; 41 | } 42 | 43 | public static FlowableTransformer io_main_flowable() { 44 | return new FlowableTransformer() { 45 | @Override 46 | public Flowable apply(Flowable observable) { 47 | return observable.subscribeOn(Schedulers.io()) 48 | .observeOn(AndroidSchedulers.mainThread()); 49 | } 50 | }; 51 | } 52 | 53 | public static SingleTransformer single_io_main() { 54 | 55 | return new SingleTransformer() { 56 | 57 | @Override 58 | public SingleSource apply(Single upstream) { 59 | return upstream.subscribeOn(Schedulers.io()) 60 | .observeOn(AndroidSchedulers.mainThread()); 61 | } 62 | }; 63 | } 64 | 65 | public static ObservableTransformer computation_main() { 66 | 67 | return new ObservableTransformer() { 68 | 69 | @Override 70 | public ObservableSource apply(Observable upstream) { 71 | return upstream.subscribeOn(Schedulers.computation()) 72 | .observeOn(AndroidSchedulers.mainThread()); 73 | } 74 | }; 75 | } 76 | 77 | public static SingleTransformer single_computation_main() { 78 | 79 | return new SingleTransformer() { 80 | 81 | @Override 82 | public SingleSource apply(Single upstream) { 83 | return upstream.subscribeOn(Schedulers.computation()) 84 | .observeOn(AndroidSchedulers.mainThread()); 85 | } 86 | }; 87 | } 88 | 89 | 90 | //-----------------------------------------method----------------------------------------- 91 | 92 | public static Disposable runOnBackground(@NonNull final RxCall call) { 93 | return Observable.create(new ObservableOnSubscribe() { 94 | @Override 95 | public void subscribe(ObservableEmitter emitter) throws Exception { 96 | if (call != null) { 97 | call.onCall(null); 98 | } 99 | emitter.onComplete(); 100 | } 101 | }) 102 | .subscribeOn(Schedulers.io()) 103 | .subscribe(); 104 | } 105 | 106 | public static Disposable runOnBackground(@NonNull final RxTaskCall call) { 107 | return Observable.create(new ObservableOnSubscribe() { 108 | @Override 109 | public void subscribe(ObservableEmitter emitter) throws Exception { 110 | T result = call.doInBackground(); 111 | if (result == null) { 112 | call.onError(new NullPointerException()); 113 | emitter.onComplete(); 114 | } else { 115 | emitter.onNext(result); 116 | } 117 | 118 | } 119 | }).subscribeOn(Schedulers.io()) 120 | .observeOn(AndroidSchedulers.mainThread()) 121 | .subscribe(new Consumer() { 122 | @Override 123 | public void accept(T t) throws Exception { 124 | call.onResult(t); 125 | } 126 | }); 127 | 128 | } 129 | 130 | public static Disposable runOnUiThread(@NonNull RxCall call) { 131 | return runOnUiThread(call, new DefaultLogThrowableConsumer("RxRunOnUiThread")); 132 | } 133 | 134 | public static Disposable runOnUiThread(@NonNull RxCall call, @NonNull Consumer errorConsumer) { 135 | return Flowable.just(call) 136 | .observeOn(AndroidSchedulers.mainThread()) 137 | .subscribe(new Consumer>() { 138 | @Override 139 | public void accept(RxCall tiRxCall) throws Exception { 140 | if (tiRxCall instanceof RxCallImpl) { 141 | RxCallImpl uiCall = ((RxCallImpl) tiRxCall); 142 | uiCall.onCall(uiCall.getData()); 143 | } else { 144 | tiRxCall.onCall(null); 145 | } 146 | } 147 | }, errorConsumer); 148 | } 149 | 150 | 151 | public static Disposable delay(long delayTime, @NonNull RxCall call) { 152 | return delay(delayTime, TimeUnit.MILLISECONDS, call); 153 | 154 | } 155 | 156 | public static Disposable delay(long delayTime, TimeUnit unit, @NonNull RxCall call) { 157 | return delay(delayTime, unit, call, new DefaultLogThrowableConsumer()); 158 | } 159 | 160 | public static Disposable delay(long delayTime, TimeUnit unit, @NonNull final RxCall call, @NonNull Consumer errorConsumer) { 161 | return Flowable.timer(delayTime, unit) 162 | .observeOn(AndroidSchedulers.mainThread()) 163 | .subscribe(new Consumer() { 164 | @Override 165 | public void accept(Long aLong) throws Exception { 166 | call.onCall(aLong); 167 | } 168 | }, errorConsumer); 169 | } 170 | 171 | } 172 | -------------------------------------------------------------------------------- /app/src/main/java/razerdp/github/com/demo/utils/rx/RxTaskCall.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo.utils.rx; 2 | 3 | /** 4 | * Created by 大灯泡 on 2019/4/10 5 | *

6 | * Description: 7 | */ 8 | public abstract class RxTaskCall { 9 | 10 | public abstract T doInBackground(); 11 | 12 | public abstract void onResult(T result); 13 | 14 | public void onError(Throwable e){ 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_error.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/app/src/main/res/drawable-xhdpi/ic_error.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/app/src/main/res/drawable-xhdpi/ic_loading.png -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_img.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_img_single.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_multi_image.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 19 | 20 | 25 | 26 | 27 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | #c6c6c6 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | PhotoContents 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/razerdp/github/com/demo/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.demo; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /art/preview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/art/preview.gif -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | maven { url "https://maven.google.com" } 6 | jcenter() 7 | google() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.5.3' 11 | classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' 12 | classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | maven { url "https://maven.google.com" } 21 | jcenter() 22 | google() 23 | } 24 | 25 | configurations.all { 26 | resolutionStrategy.eachDependency { DependencyResolveDetails details -> 27 | def requested = details.requested 28 | if (requested.group == 'com.android.support') { 29 | if (!requested.name.startsWith("multidex")) { 30 | details.useVersion '28.0.0' 31 | } 32 | } 33 | } 34 | } 35 | } 36 | 37 | task clean(type: Delete) { 38 | delete rootProject.buildDir 39 | } 40 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razerdp/PhotoContents/208a46ae1d137511c5decad7906a668acbab14ce/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Dec 10 09:36:48 CST 2019 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-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | apply plugin: 'com.github.dcendents.android-maven' 3 | apply plugin: 'com.jfrog.bintray' 4 | 5 | android { 6 | compileSdkVersion 28 7 | 8 | defaultConfig { 9 | minSdkVersion 16 10 | targetSdkVersion 28 11 | versionCode 1 12 | versionName "1.0" 13 | 14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 15 | 16 | } 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | 24 | lintOptions { 25 | abortOnError false 26 | } 27 | } 28 | 29 | dependencies { 30 | implementation fileTree(dir: 'libs', include: ['*.jar']) 31 | androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { 32 | exclude group: 'com.android.support', module: 'support-annotations' 33 | }) 34 | testImplementation 'junit:junit:4.12' 35 | compileOnly 'com.android.support:appcompat-v7:28.0.0' 36 | } 37 | 38 | def siteUrl = 'https://github.com/razerdp/PhotoContents' 39 | def gitUrl = 'git@github.com:razerdp/PhotoContents.git' 40 | def moduleName = 'PhotoContents' 41 | 42 | 43 | group = "com.github.razerdp" 44 | version = "2.0.0" 45 | 46 | install { 47 | repositories.mavenInstaller { 48 | pom.artifactId = moduleName 49 | pom { 50 | project { 51 | packaging 'aar' 52 | name moduleName 53 | description '朋友圈九宫格' 54 | url siteUrl 55 | 56 | licenses { 57 | license { 58 | name 'The Apache Software License, Version 2.0' 59 | url 'http://www.apache.org/licenses/LICENSE-2.0.txt' 60 | } 61 | } 62 | 63 | developers { 64 | developer { 65 | id 'razerdp' 66 | name 'razerdp' 67 | email 'razerdp123@gmail.com' 68 | } 69 | } 70 | 71 | scm { 72 | connection gitUrl 73 | developerConnection gitUrl 74 | url siteUrl 75 | } 76 | } 77 | } 78 | } 79 | } 80 | 81 | task sourcesJar(type: Jar) { 82 | from android.sourceSets.main.java.srcDirs 83 | classifier = 'sources' 84 | } 85 | task javadoc(type: Javadoc) { 86 | source = android.sourceSets.main.java.srcDirs 87 | classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) 88 | failOnError false 89 | } 90 | 91 | task javadocJar(type: Jar, dependsOn: javadoc) { 92 | classifier = 'javadoc' 93 | from javadoc.destinationDir 94 | } 95 | 96 | javadoc { 97 | options { 98 | encoding "UTF-8" 99 | charSet 'UTF-8' 100 | author true 101 | version true 102 | links "https://developer.android.google.cn/reference/" 103 | addStringOption('Xdoclint:none', '-quiet') 104 | } 105 | } 106 | 107 | artifacts { 108 | archives javadocJar 109 | archives sourcesJar 110 | } 111 | 112 | Properties properties = new Properties() 113 | properties.load(project.rootProject.file('local.properties').newDataInputStream()) 114 | bintray { 115 | user = properties.getProperty("bintray.user") 116 | key = properties.getProperty("bintray.apikey") 117 | 118 | configurations = ['archives'] 119 | pkg { 120 | repo = "maven" 121 | name = moduleName 122 | userOrg = 'razerdp' 123 | websiteUrl = siteUrl 124 | vcsUrl = gitUrl 125 | licenses = ["Apache-2.0"] 126 | publish = true 127 | } 128 | } 129 | -------------------------------------------------------------------------------- /lib/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 D:\AndroidSDK/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 | -------------------------------------------------------------------------------- /lib/src/androidTest/java/razerdp/github/com/widget/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.widget; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("razerdp.github.com.widget.test", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /lib/src/main/java/razerdp/github/com/widget/PhotoContents.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.widget; 2 | 3 | import android.content.Context; 4 | import android.database.Observable; 5 | import android.graphics.Rect; 6 | import android.support.annotation.NonNull; 7 | import android.support.annotation.Nullable; 8 | import android.support.v4.view.ViewCompat; 9 | import android.util.AttributeSet; 10 | import android.view.View; 11 | import android.view.ViewGroup; 12 | 13 | import razerdp.github.com.widget.util.SimplePool; 14 | 15 | 16 | /** 17 | * Created by 大灯泡 on 2019/7/1 18 | *

19 | * Description: 20 | */ 21 | public class PhotoContents extends ViewGroup { 22 | private static final String TAG = "PhotoContents"; 23 | 24 | PhotoContents.LayoutManager mLayout; 25 | SimplePool mPools; 26 | State mState; 27 | Adapter mAdapter; 28 | AdapterDataObserver mObserver; 29 | 30 | 31 | public PhotoContents(Context context) { 32 | this(context, null); 33 | } 34 | 35 | public PhotoContents(Context context, AttributeSet attrs) { 36 | this(context, attrs, 0); 37 | } 38 | 39 | public PhotoContents(Context context, AttributeSet attrs, int defStyleAttr) { 40 | super(context, attrs, defStyleAttr); 41 | init(); 42 | } 43 | 44 | private void init() { 45 | mObserver = new PhotoContentsObserver(); 46 | mPools = new SimplePool<>(9); 47 | mState = new State(); 48 | } 49 | 50 | @Override 51 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 52 | if (mLayout == null) { 53 | defaultOnMeasure(widthMeasureSpec, heightMeasureSpec); 54 | } else { 55 | preventRequestLayout(); 56 | mState.itemCount = mAdapter.getItemCount(); 57 | 58 | if (mState.itemCount == 0 || mAdapter == null) { 59 | doRecycler(); 60 | defaultOnMeasure(widthMeasureSpec, heightMeasureSpec); 61 | resumeRequestLayout(); 62 | return; 63 | } 64 | mLayout.onMeasure(mPools, mState, widthMeasureSpec, heightMeasureSpec); 65 | resumeRequestLayout(); 66 | } 67 | } 68 | 69 | void defaultOnMeasure(int widthSpec, int heightSpec) { 70 | int width = LayoutManager.chooseSize(widthSpec, this.getPaddingLeft() + this.getPaddingRight(), ViewCompat.getMinimumWidth(this)); 71 | int height = LayoutManager.chooseSize(heightSpec, this.getPaddingTop() + this.getPaddingBottom(), ViewCompat.getMinimumHeight(this)); 72 | setMeasuredDimension(width, height); 73 | } 74 | 75 | @Override 76 | protected void onLayout(boolean changed, int l, int t, int r, int b) { 77 | preventRequestLayout(); 78 | if (mAdapter == null) { 79 | doRecycler(); 80 | resumeRequestLayout(); 81 | return; 82 | } 83 | if (mLayout == null) { 84 | resumeRequestLayout(); 85 | return; 86 | } 87 | mState.setBounds(getPaddingLeft(), getPaddingTop(), r - getPaddingRight(), b - getPaddingBottom()); 88 | mLayout.onLayoutChildren(mPools, mState); 89 | mState.dataChanged = false; 90 | resumeRequestLayout(); 91 | } 92 | 93 | private void doRecycler() { 94 | final int childCount = getChildCount(); 95 | if (childCount <= 0) return; 96 | for (int i = 0; i < childCount; i++) { 97 | View v = getChildAt(i); 98 | ViewGroup.LayoutParams p = v.getLayoutParams(); 99 | if (!checkLayoutParams(p)) continue; 100 | ViewHolder holder = ((LayoutParams) p).mViewHolder; 101 | if (holder == null) continue; 102 | boolean intercept = mLayout != null && mLayout.onInterceptRecycle(childCount, i, holder); 103 | if (!intercept) { 104 | mPools.release(holder); 105 | } 106 | holder.onRecycled(); 107 | } 108 | detachAllViewsFromParent(); 109 | } 110 | 111 | 112 | protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { 113 | return p instanceof LayoutParams; 114 | } 115 | 116 | public Adapter getAdapter() { 117 | return mAdapter; 118 | } 119 | 120 | public PhotoContents setAdapter(Adapter adapter) { 121 | if (this.mAdapter == adapter) return this; 122 | if (this.mAdapter != null) { 123 | this.mAdapter.unregisterAdapterDataObserver(mObserver); 124 | this.mAdapter.onDetachedFromPhotoContents(this); 125 | } 126 | doRecycler(); 127 | mPools.clearPool(new SimplePool.OnClearListener() { 128 | @Override 129 | public void onClear(ViewHolder cached) { 130 | cached.onDead(); 131 | } 132 | }); 133 | 134 | this.mAdapter = adapter; 135 | if (adapter != null) { 136 | adapter.registerAdapterDataObserver(mObserver); 137 | adapter.onAttachedToPhotoContents(this); 138 | } 139 | mState.dataChanged = true; 140 | return this; 141 | } 142 | 143 | public PhotoContents setLayoutManager(LayoutManager manager) { 144 | if (this.mLayout != null) { 145 | doRecycler(); 146 | this.mLayout = null; 147 | } 148 | this.mLayout = manager; 149 | mLayout.bindPhotoContents(this); 150 | requestLayout(); 151 | 152 | return this; 153 | } 154 | 155 | protected LayoutParams generateDefaultLayoutParams() { 156 | return new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); 157 | } 158 | 159 | public SimplePool getRecyclerPools() { 160 | return mPools; 161 | } 162 | 163 | private void preventRequestLayout() { 164 | mState.preventRequestLayout++; 165 | } 166 | 167 | private void resumeRequestLayout() { 168 | mState.preventRequestLayout--; 169 | if (mState.preventRequestLayout < 0) { 170 | mState.preventRequestLayout = 0; 171 | } 172 | } 173 | 174 | @Override 175 | public void requestLayout() { 176 | // if (mState == null || mState.preventRequestLayout != 0) { 177 | // NELog.i(TAG,"preventRequest"); 178 | // return; 179 | // } 180 | super.requestLayout(); 181 | } 182 | 183 | public State getState() { 184 | return mState; 185 | } 186 | 187 | @Nullable 188 | public ViewHolder findViewHolderForPosition(int position) { 189 | View v = getChildAt(position); 190 | if (v == null) return null; 191 | if (!checkLayoutParams(v.getLayoutParams())) return null; 192 | return ((LayoutParams) v.getLayoutParams()).mViewHolder; 193 | 194 | } 195 | 196 | public abstract static class LayoutManager { 197 | 198 | PhotoContents mPhotoContents; 199 | 200 | public abstract void onMeasure(@NonNull SimplePool pool, @NonNull State state, int widthSpec, int heightSpec); 201 | 202 | public abstract void onLayoutChildren(@NonNull SimplePool pool, @NonNull State state); 203 | 204 | public static int chooseSize(int spec, int desired, int min) { 205 | int mode = MeasureSpec.getMode(spec); 206 | int size = MeasureSpec.getSize(spec); 207 | switch (mode) { 208 | case MeasureSpec.AT_MOST: 209 | return Math.min(size, Math.max(desired, min)); 210 | case MeasureSpec.EXACTLY: 211 | return size; 212 | case MeasureSpec.UNSPECIFIED: 213 | default: 214 | return Math.max(desired, min); 215 | } 216 | } 217 | 218 | protected void setMeasuredDimension(int widthSize, int heightSize) { 219 | this.mPhotoContents.setMeasuredDimension(widthSize, heightSize); 220 | } 221 | 222 | private void bindPhotoContents(PhotoContents mPhotoContents) { 223 | boolean call = this.mPhotoContents != mPhotoContents; 224 | this.mPhotoContents = mPhotoContents; 225 | if (call) { 226 | onAttachedPhotoContents(mPhotoContents); 227 | } 228 | } 229 | 230 | public void requestLayout() { 231 | this.mPhotoContents.requestLayout(); 232 | } 233 | 234 | public PhotoContents getParent() { 235 | return mPhotoContents; 236 | } 237 | 238 | public int getChildCount() { 239 | return mPhotoContents.getChildCount(); 240 | } 241 | 242 | public void addView(View child) { 243 | this.addView(child, -1); 244 | } 245 | 246 | public void addView(View child, int index) { 247 | this.addView(child, index, null); 248 | } 249 | 250 | 251 | public void addView(View child, int index, LayoutParams p) { 252 | this.addView(child, index, p, false); 253 | } 254 | 255 | public void addView(View child, int index, LayoutParams p, boolean preventRequestLayout) { 256 | if (preventRequestLayout) { 257 | mPhotoContents.addViewInLayout(child, index, p, true); 258 | } else { 259 | mPhotoContents.addView(child, index, p); 260 | } 261 | } 262 | 263 | 264 | public void removeViewAt(int index) { 265 | View child = this.getChildAt(index); 266 | if (child != null) { 267 | mPhotoContents.removeViewAt(index); 268 | } 269 | 270 | } 271 | 272 | public void removeAllViews() { 273 | int childCount = mPhotoContents.getChildCount(); 274 | for (int i = childCount - 1; i >= 0; --i) { 275 | mPhotoContents.removeViewAt(i); 276 | } 277 | } 278 | 279 | public void detachView(@NonNull View child) { 280 | mPhotoContents.detachViewFromParent(child); 281 | } 282 | 283 | public void detachViewAt(int index) { 284 | mPhotoContents.detachViewsFromParent(index, 1); 285 | } 286 | 287 | public LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) { 288 | if (lp instanceof LayoutParams) { 289 | return new LayoutParams((LayoutParams) lp); 290 | } else { 291 | return lp instanceof MarginLayoutParams ? new LayoutParams((MarginLayoutParams) lp) : new LayoutParams(lp); 292 | } 293 | } 294 | 295 | public View getChildAt(int index) { 296 | return mPhotoContents.getChildAt(index); 297 | } 298 | 299 | public void onAttachedPhotoContents(PhotoContents PhotoContents) { 300 | 301 | } 302 | 303 | public boolean onInterceptRecycle(int childCount, int position, @NonNull ViewHolder holder) { 304 | return false; 305 | } 306 | 307 | protected ViewHolder obtainViewHolder(int position) { 308 | ViewHolder result = mPhotoContents.mPools.acquire(); 309 | if (result == null) { 310 | result = createFromAdapter(position); 311 | } 312 | onPrepareViewHolder(result, position); 313 | return result; 314 | } 315 | 316 | protected ViewHolder createFromAdapter(int position) { 317 | return mPhotoContents.getAdapter().createViewHolder(mPhotoContents, position); 318 | } 319 | 320 | protected void onPrepareViewHolder(ViewHolder holder, int position) { 321 | ViewGroup.LayoutParams lp = holder.rootView.getLayoutParams(); 322 | LayoutParams p; 323 | 324 | if (lp == null) { 325 | p = generateDefaultLayoutParams(); 326 | holder.rootView.setLayoutParams(p); 327 | } else if (!checkLayoutParams(lp)) { 328 | p = generateLayoutParams(lp); 329 | holder.rootView.setLayoutParams(p); 330 | } else { 331 | p = (LayoutParams) lp; 332 | } 333 | 334 | holder.position = position; 335 | p.mViewHolder = holder; 336 | } 337 | 338 | public LayoutParams generateDefaultLayoutParams() { 339 | return mPhotoContents.generateDefaultLayoutParams(); 340 | } 341 | 342 | protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { 343 | return mPhotoContents.checkLayoutParams(p); 344 | } 345 | 346 | protected void doRecycler() { 347 | mPhotoContents.doRecycler(); 348 | } 349 | 350 | protected ViewHolder findViewHolderForView(View v) { 351 | if (!checkLayoutParams(v.getLayoutParams())) { 352 | throw new IllegalArgumentException("View的layoutparams不正确"); 353 | } 354 | 355 | return ((LayoutParams) v.getLayoutParams()).mViewHolder; 356 | 357 | } 358 | } 359 | 360 | 361 | public abstract static class AdapterDataObserver { 362 | public void onChanged() { 363 | 364 | } 365 | } 366 | 367 | private class PhotoContentsObserver extends AdapterDataObserver { 368 | @Override 369 | public void onChanged() { 370 | mState.reset(); 371 | doRecycler(); 372 | requestLayout(); 373 | } 374 | } 375 | 376 | static class AdapterDataObservable extends Observable { 377 | AdapterDataObservable() { 378 | } 379 | 380 | public boolean hasObservers() { 381 | return !this.mObservers.isEmpty(); 382 | } 383 | 384 | public void notifyChanged() { 385 | for (int i = this.mObservers.size() - 1; i >= 0; --i) { 386 | this.mObservers.get(i).onChanged(); 387 | } 388 | } 389 | } 390 | 391 | public abstract static class Adapter { 392 | private final AdapterDataObservable mObservable = new AdapterDataObservable(); 393 | 394 | public void registerAdapterDataObserver(@NonNull AdapterDataObserver observer) { 395 | this.mObservable.registerObserver(observer); 396 | } 397 | 398 | public void unregisterAdapterDataObserver(@NonNull AdapterDataObserver observer) { 399 | this.mObservable.unregisterObserver(observer); 400 | } 401 | 402 | public void onViewRecycled(@NonNull VH holder) { 403 | } 404 | 405 | 406 | public void onAttachedToPhotoContents(@NonNull PhotoContents PhotoContents) { 407 | } 408 | 409 | public void onDetachedFromPhotoContents(@NonNull PhotoContents PhotoContents) { 410 | } 411 | 412 | public abstract int getItemCount(); 413 | 414 | public abstract VH onCreateViewHolder(ViewGroup parent, int position); 415 | 416 | public abstract void onBindViewHolder(VH viewHolder, int position); 417 | 418 | public final VH createViewHolder(ViewGroup parent, int position) { 419 | VH holder = onCreateViewHolder(parent, position); 420 | if (holder.rootView == null) { 421 | throw new NullPointerException("ViewHolder的rootView不能为空"); 422 | } 423 | if (holder.rootView.getParent() != null) { 424 | throw new IllegalArgumentException("ViewHolder的rootView不能有Parent"); 425 | } 426 | return holder; 427 | } 428 | 429 | public final void bindViewHolder(@NonNull VH viewHolder, int position) { 430 | viewHolder.position = position; 431 | onBindViewHolder(viewHolder, position); 432 | } 433 | 434 | 435 | public final void notifyDataSetChanged() { 436 | this.mObservable.notifyChanged(); 437 | } 438 | } 439 | 440 | public abstract static class ViewHolder { 441 | public final View rootView; 442 | int position; 443 | 444 | public ViewHolder(View rootView) { 445 | this.rootView = rootView; 446 | } 447 | 448 | public int getPosition() { 449 | return position; 450 | } 451 | 452 | public void onRecycled() { 453 | 454 | } 455 | 456 | public void onDead() { 457 | 458 | } 459 | 460 | public final V findViewById(int resid) { 461 | if (resid > 0 && rootView != null) { 462 | return rootView.findViewById(resid); 463 | } 464 | return null; 465 | } 466 | } 467 | 468 | public static class LayoutParams extends MarginLayoutParams { 469 | ViewHolder mViewHolder; 470 | 471 | public LayoutParams(Context c, AttributeSet attrs) { 472 | super(c, attrs); 473 | } 474 | 475 | public LayoutParams(int width, int height) { 476 | super(width, height); 477 | } 478 | 479 | public LayoutParams(MarginLayoutParams source) { 480 | super(source); 481 | } 482 | 483 | public LayoutParams(ViewGroup.LayoutParams source) { 484 | super(source); 485 | } 486 | } 487 | 488 | public static class State { 489 | 490 | int preventRequestLayout; 491 | boolean dataChanged; 492 | int itemCount; 493 | Rect rect = new Rect(); 494 | Rect tempRect = new Rect(); 495 | 496 | void setBounds(int l, int t, int r, int b) { 497 | rect.set(l, t, r, b); 498 | } 499 | 500 | public boolean isDataChanged() { 501 | return dataChanged; 502 | } 503 | 504 | public int getItemCount() { 505 | return itemCount; 506 | } 507 | 508 | public Rect getBounds() { 509 | tempRect.set(rect); 510 | return tempRect; 511 | } 512 | 513 | void reset() { 514 | dataChanged = true; 515 | itemCount = 0; 516 | rect.setEmpty(); 517 | tempRect.setEmpty(); 518 | } 519 | 520 | @Override 521 | public String toString() { 522 | return "State{" + 523 | "preventRequestLayout=" + preventRequestLayout + 524 | ", dataChanged=" + dataChanged + 525 | ", itemCount=" + itemCount + 526 | ", rect=" + rect + 527 | ", tempRect=" + tempRect + 528 | '}'; 529 | } 530 | } 531 | } 532 | -------------------------------------------------------------------------------- /lib/src/main/java/razerdp/github/com/widget/layoutmanager/NineGridLayoutManager.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.widget.layoutmanager; 2 | 3 | import android.graphics.Rect; 4 | import android.support.annotation.NonNull; 5 | import android.view.View; 6 | 7 | import razerdp.github.com.widget.PhotoContents; 8 | import razerdp.github.com.widget.util.SimplePool; 9 | 10 | /** 11 | * Created by 大灯泡 on 2019/7/2 12 | *

13 | * Description: 14 | */ 15 | public class NineGridLayoutManager extends PhotoContents.LayoutManager { 16 | private static final String TAG = "NineGridLayoutManager"; 17 | private int itemSpace = 0; 18 | private LayoutState mLayoutState; 19 | SimplePool mSinglePool; 20 | 21 | public NineGridLayoutManager(int itemSpace) { 22 | this.itemSpace = itemSpace; 23 | mSinglePool = new SimplePool<>(9); 24 | mLayoutState = new LayoutState(); 25 | } 26 | 27 | @Override 28 | public void onMeasure(@NonNull SimplePool pool, @NonNull PhotoContents.State state, int widthSpec, int heightSpec) { 29 | mLayoutState.widthMeasureSpec = widthSpec; 30 | mLayoutState.heightMeasureSpec = heightSpec; 31 | mLayoutState.itemCount = state.getItemCount(); 32 | if (state.isDataChanged()) { 33 | doRecycler(); 34 | } 35 | 36 | if (state.getItemCount() == 1) { 37 | int parentHeight = View.MeasureSpec.getSize(heightSpec) - getParent().getPaddingTop() - getParent().getPaddingBottom(); 38 | int parentWidth = View.MeasureSpec.getSize(widthSpec) - getParent().getPaddingLeft() - getParent().getPaddingRight(); 39 | View v = measureChild(getChildAt(0), 0, widthSpec, View.MeasureSpec.makeMeasureSpec(parentHeight <= 0 ? parentWidth : parentHeight, View.MeasureSpec.AT_MOST)); 40 | mLayoutState.widthMeasureSpec = widthSpec; 41 | mLayoutState.heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(v.getMeasuredHeight(), View.MeasureSpec.AT_MOST); 42 | } else { 43 | if (View.MeasureSpec.getMode(widthSpec) == View.MeasureSpec.EXACTLY && View.MeasureSpec.getMode(heightSpec) == View.MeasureSpec.EXACTLY) { 44 | measureWithExactly(state, widthSpec, heightSpec); 45 | } else { 46 | measureWithAtMost(state, widthSpec, heightSpec); 47 | } 48 | } 49 | 50 | setMeasuredDimension(mLayoutState.widthMeasureSpec, mLayoutState.heightMeasureSpec); 51 | } 52 | 53 | private void measureWithExactly(PhotoContents.State state, int widthSpec, int heightSpec) { 54 | int parentHeight = View.MeasureSpec.getSize(heightSpec) - getParent().getPaddingTop() - getParent().getPaddingBottom(); 55 | int parentWidth = View.MeasureSpec.getSize(widthSpec) - getParent().getPaddingLeft() - getParent().getPaddingRight(); 56 | 57 | final int itemCount = state.getItemCount(); 58 | 59 | int childWidth = (parentWidth - (itemSpace << 1)) / 3; 60 | int childHeight = (parentHeight - (itemSpace << 1)) / 3; 61 | int size = Math.min(childWidth, childHeight); 62 | 63 | for (int i = 0; i < itemCount; i++) { 64 | measureChild(getChildAt(i), i, 65 | View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY), 66 | View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY)); 67 | } 68 | 69 | mLayoutState.widthMeasureSpec = widthSpec; 70 | mLayoutState.heightMeasureSpec = heightSpec; 71 | } 72 | 73 | private void measureWithAtMost(PhotoContents.State state, int widthSpec, int heightSpec) { 74 | int widthMode = View.MeasureSpec.getMode(widthSpec); 75 | int heightMode = View.MeasureSpec.getMode(heightSpec); 76 | 77 | int parentHeight = View.MeasureSpec.getSize(heightSpec) - getParent().getPaddingTop() - getParent().getPaddingBottom(); 78 | int parentWidth = View.MeasureSpec.getSize(widthSpec) - getParent().getPaddingLeft() - getParent().getPaddingRight(); 79 | 80 | final int itemCount = state.getItemCount(); 81 | 82 | int rowCount = itemCount % 3 == 0 ? itemCount / 3 : itemCount / 3 + 1; 83 | int columnCount = itemCount >= 3 ? 3 : itemCount; 84 | 85 | if (itemCount == 4) { 86 | rowCount = 2; 87 | columnCount = 2; 88 | } 89 | 90 | if (widthMode == View.MeasureSpec.EXACTLY) { 91 | int size = (parentWidth - (itemSpace << 1)) / 3; 92 | 93 | for (int i = 0; i < itemCount; i++) { 94 | measureChild(getChildAt(i), i, View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY), 95 | View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY)); 96 | } 97 | parentHeight = size * rowCount + Math.max(0, rowCount - 1) * itemSpace; 98 | heightSpec = View.MeasureSpec.makeMeasureSpec(parentHeight, heightMode); 99 | } else if (heightMode == View.MeasureSpec.EXACTLY) { 100 | int size = (parentHeight - (itemSpace << 1)) / 3; 101 | for (int i = 0; i < itemCount; i++) { 102 | measureChild(getChildAt(i), i, View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY), 103 | View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY)); 104 | } 105 | parentWidth = size * columnCount + Math.max(0, columnCount - 1) * itemSpace; 106 | widthSpec = View.MeasureSpec.makeMeasureSpec(parentWidth, widthMode); 107 | } 108 | mLayoutState.widthMeasureSpec = widthSpec; 109 | mLayoutState.heightMeasureSpec = heightSpec; 110 | } 111 | 112 | 113 | private View measureChild(View v, int position, int widthSpec, int heightSpec) { 114 | if (v == null) { 115 | v = obtainViewHolder(position).rootView; 116 | } 117 | if (v.getVisibility() == View.GONE) return v; 118 | v.measure(widthSpec, heightSpec); 119 | if (v.getParent() == null) { 120 | addViewInternal(v, position); 121 | } 122 | return v; 123 | } 124 | 125 | private void addViewInternal(View v, int pos) { 126 | if (v == null) return; 127 | PhotoContents.ViewHolder holder = findViewHolderForView(v); 128 | if (holder == null) { 129 | throw new NullPointerException("ViewHolder为空"); 130 | } 131 | 132 | getParent().getAdapter().bindViewHolder(holder, pos); 133 | addView(v, -1, (PhotoContents.LayoutParams) v.getLayoutParams(), true); 134 | } 135 | 136 | @Override 137 | public void onLayoutChildren(@NonNull SimplePool pool, @NonNull PhotoContents.State state) { 138 | Rect bounds = state.getBounds(); 139 | 140 | final int childCount = getChildCount(); 141 | if (childCount == 1) { 142 | View child = getChildAt(0); 143 | child.layout(bounds.left, bounds.top, bounds.left + child.getMeasuredWidth(), bounds.top + child.getMeasuredHeight()); 144 | } else { 145 | int left = bounds.left; 146 | int top = bounds.top; 147 | for (int i = 0; i < childCount; i++) { 148 | View child = getChildAt(i); 149 | if (child.getVisibility() == View.GONE) continue; 150 | 151 | int right = left + child.getMeasuredWidth(); 152 | int bottom = top + child.getMeasuredHeight(); 153 | 154 | child.layout(left, top, right, bottom); 155 | 156 | left += child.getMeasuredWidth() + itemSpace; 157 | 158 | if (childCount == 4) { 159 | if (i == 1) { 160 | //换行 161 | left = bounds.left; 162 | top = bottom + itemSpace; 163 | } 164 | } else { 165 | if ((i + 1) % 3 == 0) { 166 | left = bounds.left; 167 | top = bottom + itemSpace; 168 | } 169 | } 170 | } 171 | } 172 | } 173 | 174 | @Override 175 | protected PhotoContents.ViewHolder obtainViewHolder(int position) { 176 | if (mLayoutState.itemCount == 1) { 177 | PhotoContents.ViewHolder result = mSinglePool.acquire(); 178 | if (result == null) { 179 | result = createFromAdapter(position); 180 | } 181 | onPrepareViewHolder(result, position); 182 | return result; 183 | } 184 | return super.obtainViewHolder(position); 185 | } 186 | 187 | @Override 188 | public boolean onInterceptRecycle(int childCount, int position, @NonNull PhotoContents.ViewHolder holder) { 189 | if (childCount == 1) { 190 | mSinglePool.release(holder); 191 | return true; 192 | } 193 | return super.onInterceptRecycle(childCount, position, holder); 194 | } 195 | 196 | private static class LayoutState { 197 | int widthMeasureSpec; 198 | int heightMeasureSpec; 199 | int itemCount; 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /lib/src/main/java/razerdp/github/com/widget/util/SimplePool.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.widget.util; 2 | 3 | 4 | import android.util.Log; 5 | 6 | /** 7 | * Created by 大灯泡 on 2019/4/25 8 | *

9 | * Description: 10 | */ 11 | public class SimplePool { 12 | private static final String TAG = "SimplePool"; 13 | private final Object[] mPool; 14 | private int mPoolSize; 15 | 16 | public SimplePool(int maxPoolSize) { 17 | if (maxPoolSize <= 0) { 18 | throw new IllegalArgumentException("The max pool size must be > 0"); 19 | } else { 20 | this.mPool = new Object[maxPoolSize]; 21 | } 22 | } 23 | 24 | public T acquire() { 25 | if (this.mPoolSize > 0) { 26 | int lastPooledIndex = this.mPoolSize - 1; 27 | T instance = (T) this.mPool[lastPooledIndex]; 28 | this.mPool[lastPooledIndex] = null; 29 | --this.mPoolSize; 30 | return instance; 31 | } else { 32 | return null; 33 | } 34 | } 35 | 36 | public boolean release(T instance) { 37 | if (this.isInPool(instance)) { 38 | Log.e(TAG, "Already in the pool!"); 39 | return false; 40 | } else if (this.mPoolSize < this.mPool.length) { 41 | this.mPool[this.mPoolSize] = instance; 42 | ++this.mPoolSize; 43 | return true; 44 | } else { 45 | return false; 46 | } 47 | } 48 | 49 | public boolean isFull() { 50 | return this.mPoolSize == mPool.length; 51 | } 52 | 53 | public boolean isInPool(T instance) { 54 | for (int i = 0; i < this.mPoolSize; ++i) { 55 | if (this.mPool[i] == instance) { 56 | return true; 57 | } 58 | } 59 | 60 | return false; 61 | } 62 | 63 | public void clearPool() { 64 | clearPool(null); 65 | } 66 | 67 | public void clearPool(OnClearListener l) { 68 | for (int i = 0; i < mPool.length; i++) { 69 | if (l != null && mPool[i] != null) { 70 | l.onClear((T) mPool[i]); 71 | } 72 | mPool[i] = null; 73 | } 74 | mPoolSize = 0; 75 | } 76 | 77 | public int size() { 78 | return mPoolSize; 79 | } 80 | 81 | public interface OnClearListener { 82 | void onClear(T cached); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /lib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Widget 3 | 4 | -------------------------------------------------------------------------------- /lib/src/test/java/razerdp/github/com/widget/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package razerdp.github.com.widget; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':lib' 2 | --------------------------------------------------------------------------------