项目作者: REBOOTERS

项目描述 :
Create something like Shadow-View animation when drag the view on screen
高级语言: Kotlin
项目地址: git://github.com/REBOOTERS/ShadowStackView.git
创建时间: 2019-04-21T08:40:01Z
项目社区:https://github.com/REBOOTERS/ShadowStackView

开源协议:Apache License 2.0

下载


ShadowStackView

Create something like Shadow-View animation when drag the view on screen

Gradle

  1. implementation "com.rebooter:shadowstackview:0.0.1"

Usage

  1. ShadowStack.with(this).targetView(layout).apply()

The function with(activity:Activity) need an instance of Activity or subclass of Activity . We use Activity with WeakReference Internal.

  1. ShadowStack.with(this)
  2. .targetView(card)
  3. .setShadowCount(20)
  4. .apply()

set Shadow-View count.

more detail usage could be found in example

Attention :The rootView of Activity (aka the layout.xml used to setContentView) can not be LinearLayout

todo

  • support Custom Container
  • support LinearLayout
  • support Scrollable RecyclerView

Thanks

This library is inspired by devilist/SnakeViewMaker and uses some of its source code.

License


  1. Copyright 2019 REBOOTERS
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.