Comments (6)
I noticed that the downloaded SwipeBackActivity
still extends from ActionBarActivity
. But browsing the code from github, it already extends from AppCompatActivity.
from swipeback.
I tried removing from dependencies to delete the library and then re-adding to download from gradle again, the SwipeBackActivity
still extends from ActionBarActivity
from swipeback.
Even after invalidating the caches, the library being downloaded still extends ActionBarActivity. Doesn't anybody else encounter the same problem here?
from swipeback.
The problem is that the latest gradle dependency (as of now version 1.0.2) is outdated.
If you look into the file in this repository, you'll see that SwipeBackActivity
actually extends from AppCompatActivity
and not ActionBarActivity.
In order to use the new version, you have to compile the library yourself.
- Clone the repository (or download as .zip)
- Extract the archive (only if you downloaded it as a .zip)
- (In your Android Studio project) File > New > Import Module
- "Source directory" -> path [...]/SwipeBack-master/library (wherever you saved it; Important: select the "library" subfolder)
- "Module name" -> change from
:library
to:swipeback
- -> "Finish"
- (In your application level build.gradle) Add the newly added module as a dependency of your app
compile project(':swipeback')
(this will replacecompile 'com.github.liuguangqiang.swipeback:library:1.0.2@aar'
) - Finally, sync it and you should be good to go
Note: Keep in mind that this local branch will not be updated when the developer (@liuguangqiang) does so.
You might/should change things like com.android.support:appcompat-v7:*version*
(in the swipeback: build.gradle) to the same version as in your application level build.gradle to avoid compatibility issues (this could break the functionality of the module (in the future); it works with version 26.0.1).
from swipeback.
Also for some reason SwipeBack doesn't work properly with CollapsingToolbarLayout ( 26.0.0+ ), it worked fine with 25.4.0.
Now when I scroll down a little bit and scroll all the way up, swipe back works only after some delay :(
Any idea how to fix that?
You can find sample project attached.
from swipeback.
@offdroid, @dev-JE02:
You can use jitpack.io as additional package repository like this:
root build.gradle
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
maven { url 'https://jitpack.io' }
}
}
app build.gradle
(get the latest commit in master Branch)
dependencies {
compile 'com.github.liuguangqiang:SwipeBack:master-SNAPSHOT'
}
OR
(to get a specific commit)
dependencies {
compile 'com.github.liuguangqiang:SwipeBack:0dd68189c5'
}
from swipeback.
Related Issues (20)
- 设置左划之后 下滑禁止不掉 HOT 2
- 我需要仅仅通过纯左右滑动,也就是只有x移动,y值不变,才判定为要退出,请教要如何设置? HOT 1
- Proguard HOT 3
- 关于引用该项目遇到的一些问题,以及解决办法
- Getting white screen when i swipe left to right for some time how to remove that. HOT 1
- 在A界面上有个按钮,重复点击按钮到B界面上,然后B界面右滑退出
- chkDragable(), 有问题 HOT 1
- Swipe down interrupts View pager
- ActionBarActivity is deprecated on SDK version 26 HOT 4
- Swipe only on header HOT 1
- 关于滑动冲突的问题
- How to implement for NestedScrollView inside Activity?
- SwipeBack with dialogfragment
- 滑动的时候当前界面划过的地方显示空白背景色,当前界面消失时显示空白界面,过一会儿就显示上一个界面,为什么会显示空白界面和当前滑过的地方也显示白色背景?
- SwipeBack support fragment
- How to avoid fading
- databingding不兼容
- How to set trigger area when swiping activity?
- onCreate not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipeback.