1 Star 0 Fork 0

dozen729/StereoView

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Unlicense
# StereoView --The idea is from weibo.com [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-StereoView-green.svg?style=true)](https://android-arsenal.com/details/3/4058) **This is the original animation effects .** ![](https://github.com/ImmortalZ/StereoView/blob/master/img/1.gif) **This is what we achieve animation effects.** ![](https://github.com/ImmortalZ/StereoView/blob/master/img/2.gif) **we can infinite loop rolling** ![](https://github.com/ImmortalZ/StereoView/blob/master/img/3.gif) **Of course,on the basis of the original,I add the other animation effects. As you see.** ![](https://github.com/ImmortalZ/StereoView/blob/master/img/4.gif) **it extends ViewGroup,of course we can contain any view like imageview** ![](https://github.com/ImmortalZ/StereoView/blob/master/img/5.gif) # How to use it ? # --- just like use ViewGroup.You can learn from it by demo. # Additional Options # --- to set the first show item > setStartScreen(int startScreen) : @param startScreen (0,getChildCount-1) to set the move resistance > setResistance(float resistance) : @param resistance (0,...) to set the interpolator > setInterpolator(Interpolator mInterpolator) : to set the degree of tow item which are rolling > setAngle(float mAngle): [0f,180f] to set whether to use 3D animation effects. > setCan3D(boolean can3D) turn to specified position. > setItem(int itemId) : @param itemId [0,getChildCount-1] turn to previous item > toPre() turn to next item > toNext() define interface ![](https://camo.githubusercontent.com/8abcd140df64926030c3e3aee12abc56a453a3fd/687474703a2f2f696d672e626c6f672e6373646e2e6e65742f3230313630373135313831363139343434) # Defects # --- 1.to show best,you must ensure the StereoView must have threee child at least. 2.to show best,you must ensure the method's ( setStartScreen(int startScreen) ) parameter are correct. --- Android 3D立体无限旋转滚动容器 相应的博文 http://blog.csdn.net/Mr_immortalZ/article/details/51918560 **原效果** ![这里写图片描述](https://github.com/ImmortalZ/StereoView/blob/master/img/1.gif) **我们实现的效果:** (为了更加可定制化,我在原图基础上新增了新的效果) ![这里写图片描述](https://github.com/ImmortalZ/StereoView/blob/master/img/2.gif) 可以快速滚动,并且无限循环 ![这里写图片描述](https://github.com/ImmortalZ/StereoView/blob/master/img/3.gif) 这个是对一些参数的进行设定 ![这里写图片描述](https://github.com/ImmortalZ/StereoView/blob/master/img/4.gif) 对图片的包裹效果 ![这里写图片描述](https://github.com/ImmortalZ/StereoView/blob/master/img/5.gif) 因为本身继承自ViewGroup,所以基本控件都是可以包裹的 自定义的方法 ---- **setStartScreen(int startScreen)** :设置第一页展示的页面 @param startScreen (0,getChildCount-1) **setResistance(float resistance)** : 设置滑动阻力 @param resistance (0,...) **setInterpolator(Interpolator mInterpolator)** : 设置滚动时interpolator插补器 **setAngle(float mAngle)**:设置滚动时两个item的夹角度数 [0f,180f] **setCan3D(boolean can3D)** : 是否开启3D效果 **setItem(int itemId)** : 跳转到指定的item @param itemId [0,getChildCount-1] **toPre()** : 上一页 **toNext()** : 下一页 **定义的回调接口** ![这里写图片描述](http://img.blog.csdn.net/20160715181619444) 缺陷说明 ---- 目前容器的item数量需要大于等于3,小于3个滑动时会些问题。设置的最开始展示的item位置不能是第一个或者最后一个,这么做是为了保证第1个或者最后一个被隐藏,从而保证最开始向上滑动或者向下滑动时的正常。 ## License MIT License Copyright (c) 2016 Avraam Piperidis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

3D翻转 展开 收起
Java
Unlicense
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dozen729/StereoView.git
git@gitee.com:dozen729/StereoView.git
dozen729
StereoView
StereoView
master

搜索帮助

D1d26d21 1850385 D1bef801 1850385