If you drag the view in the direction you want, you can go to the next page. You can show the full picture on the screen and give it the effect of crossing the page as if you were passing the paper. The logic for calculating the area, drag speed, and drag direction was applied. So, even if you do not drag a long, you can go to the next page.
- step 1 : Add it in your root build.gradle at the end of repositories
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- step 2 : Add the dependency
dependencies {
implementation 'com.github.ch-Yoon:Overlap_Loop_View:0.0.2'
}
- I wrote a very simple example code -> Sample Code
- sample demo
Copyright 2019 ch-Yoon
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.