Git Product home page Git Product logo

animatedrandomlayout's Introduction

AnimatedRandomLayout

      本布局实现了在屏幕上随机生成可供操作的子控件控件,并完成向中心移动的随控件出现位置,
  动态设定的动画效果。

#

SimpleExample:

#

可操控参数:

  随机生成的周期                  setLooperDuration(int mLooperDuration)
  最大动画时长                    setDefaultDruation(int mDefaultDruation)
  同一时刻随机生成控件的最大个数  setItemShowCount(int itemShowCount)
  随机控件分布网格空间大小        setRegularity(int xRegularity, int yRgularity)
  随机控件总数和显示(类似Adapter)setOnCreateItemViewListener(OnCreateItemViewListener itemViewListener)

#

子控件特点:

  对于子控件没有确切的要求,只要是控件父类为 View 类,就可以使用本随机布局添加显示。

#

注意:

  如果期望修改动画,可以先自定义动画,随后修改com.special.simplecloudview.random_layout
  文档中CloudRandomLayout.java(即,布局的所在文件)的startZoomAnimation方法即可。

animatedrandomlayout's People

Contributors

windsander 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.