GithubHelp home page GithubHelp logo

caizhihao / weibolist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crazyfzw/weibolist

0.0 2.0 0.0 452 KB

RecyclerView+CircleImageView+NineGridLayout实现微博列表

License: Apache License 2.0

Java 100.00%

weibolist's Introduction

WeiboList

RecyclerView+CircleImageView+NineGridLayout实现微博列表

###运行效果图

images

images

images

images

###其中

######1.使用到的CircleImageView 地址 https://github.com/hdodenhof/CircleImageView

######2.NineGridLayout 为自定义控件,用于根据图片数量显示不同的图片布局

1)、当只有1张图时,可以自己定制图片宽高

2)、当只有4张图时,以2*2的方式显示;

3)、除以上两种情况下,都是按照3列方式显示,但这时有一些细节:

    a、如果只有9张图,当然是以3*3的方式显示;
    
    b、如果超过9张图,可以设置是否全部显示。如果设置不完全显示,
    则按照3*3的方式显示,但是在第9张图上会有一个带“+”号的数字,
    代表还有几张没有显示,如果设置全部显示,理所当然的将所有图片都显示出来。

######3、图片被按下时,会有一个变暗的效果,这也是模仿微信朋友圈的效果。

weibolist's People

Contributors

crazyfzw avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.