MyGit

githubwing/ThreeDLayout

Fork: 83 Star: 500 (更新于 2024-09-11 09:59:48)

license: 暂无

Language: Java .

A 3D Layout for Android,When you use it warp other view,it can became a 3D view,一秒让你的view拥有3D效果!

最后发布版本: 1.0.0 ( 2016-11-04 21:30:41)

GitHub网址

ThreeDLayout

A 3D Layout,When you use it warp other view,it can became a 3D view

中文文档

preview

image

image

image

USAGE

1.compile library


allprojects {
  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)

 <com.wingsofts.threedlayout.ThreeDLayout
      android:background="@color/colorPrimary"
      android:id="@+id/td_header"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      >

   <TextView
       android:id="@+id/textView"
      android:text="30℃"
      android:textColor="#fff"
      android:gravity="center"
      android:textSize="80sp"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      />
  </com.wingsofts.threedlayout.ThreeDLayout>

then,you can call method

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

最近版本更新:(数据更新于 2024-09-15 10:14:43)

2016-11-04 21:30:41 1.0.0

githubwing/ThreeDLayout同语言 Java最近更新仓库

2024-09-19 23:40:03 spring-projects/spring-boot

2024-09-18 23:10:27 PBH-BTN/PeerBanHelper

2024-09-18 22:31:45 baomidou/mybatis-plus

2024-09-17 23:25:49 spring-projects/spring-authorization-server

2024-09-16 16:48:25 4379711/lol-helper

2024-09-16 11:10:42 TongchengOpenSource/smart-doc