Skip to content

REBOOTERS/ShadowStackView

Repository files navigation

ShadowStackView

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

Gradle

implementation "com.rebooter:shadowstackview:0.0.1"

Usage

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.

ShadowStack.with(this)
    .targetView(card)
    .setShadowCount(20)
    .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


Copyright 2019 REBOOTERS

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published