Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.jaychou2012:SwitchLayout:1.0.0.0'
}
dependencies {
implementation("com.github.jaychou2012:SwitchLayout:1.0.0.0")
}
<dependency>
<groupId>com.github.jaychou2012</groupId>
<artifactId>SwitchLayout</artifactId>
<version>1.0.0.0</version>
</dependency>
libraryDependencies += "com.github.jaychou2012" % "SwitchLayout" % "1.0.0.0"
:dependencies [[com.github.jaychou2012/SwitchLayout "1.0.0.0"]]
switchlayout demo提交
可以媲美IOS视图切换动画的Android视图切换动画特效库!SwitchLayout!可以说是目前Android上第一个,也是唯一的一个强大的视图切换动画库引擎!
作者:谭东
QQ:852041173
项目开源!
使用方法:
<pre><code> allprojects { repositories { ... maven { url 'https://www.jitpack.io' } } } </pre></code> <pre><code> compile 'com.github.jaychou2012:SwitchLayout:1.0.0.0' </pre></code>没有经过作者允许,不可修改项目库源码自行发布。
如果你的项目中使用了SwtichLayout,建议你在您的APP关于页面注明SwitchLayout库提供支持!非常感谢!如果您觉得SwitchLayout强大,欢迎推荐给你们的朋友。
如果有什么建议,也可以反馈给我,会及时升级SwitchLayout库。
=================================== 源码已经发布,谢谢支持!

