Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/githubwing/ThreeDLayout
A 3D Layout for Android,When you use it warp other view,it can became a 3D view,一秒让你的view拥有3D效果!
https://github.com/githubwing/ThreeDLayout
Last synced: 3 months ago
JSON representation
A 3D Layout for Android,When you use it warp other view,it can became a 3D view,一秒让你的view拥有3D效果!
- Host: GitHub
- URL: https://github.com/githubwing/ThreeDLayout
- Owner: githubwing
- Created: 2016-10-15T08:32:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-04T13:38:25.000Z (about 8 years ago)
- Last Synced: 2024-06-16T03:31:49.998Z (5 months ago)
- Language: Java
- Homepage:
- Size: 1.32 MB
- Stars: 499
- Watchers: 12
- Forks: 88
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - ThreeDLayout - 让任何view拥有3D效果 (布局)
README
# ThreeDLayout
[![](https://jitpack.io/v/githubwing/ThreeDLayout.svg)](https://jitpack.io/#githubwing/ThreeDLayout)
A 3D Layout,When you use it warp other view,it can became a 3D view
[中文文档](https://github.com/githubwing/ThreeDLayout/blob/master/README_CN.md)
# preview![image](https://github.com/githubwing/ThreeDLayout/raw/master/img/1.gif)
![image](https://github.com/githubwing/ThreeDLayout/raw/master/img/2.gif)
![image](https://github.com/githubwing/ThreeDLayout/raw/master/img/3.gif)
# USAGE
1.compile library
```gradleallprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}dependencies {
compile 'com.github.githubwing:ThreeDLayout:1.0.0'
}```
2.Let ThreeDLayout as your parent view(Tips:ThreeDLayout can only have one child)```xml
```
then,you can call method
```java
//set touch mode enable
layout.setTouchable(true);//set touch mode
layout.setTouchMode(ThreeDLayout.MODE_BOTH_X_Y);//start turn Animate
startVerticalAnimate(long duration);
startVerticalAnimateDelayed(final long delayed, final long duration)startHorizontalAnimate(long duration)
startHorizontalAnimateDelayed(final long delayed, final long duration)//start loop animate
startHorizontalAnimate()//stop loop animate
stopAnimate()
```# License
Copyright 2016 androidwing1992
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.