Create something like Shadow-View animation when drag the view on screen
Create something like Shadow-View animation when drag the view on screen
implementation "com.rebooter:shadowstackview:0.0.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
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
This library is inspired by devilist/SnakeViewMaker and uses some of its source code.
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.