Git Product home page Git Product logo

Comments (6)

johnernest02 avatar johnernest02 commented on May 29, 2024

I noticed that the downloaded SwipeBackActivity still extends from ActionBarActivity. But browsing the code from github, it already extends from AppCompatActivity.

from swipeback.

johnernest02 avatar johnernest02 commented on May 29, 2024

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.

johnernest02 avatar johnernest02 commented on May 29, 2024

Even after invalidating the caches, the library being downloaded still extends ActionBarActivity. Doesn't anybody else encounter the same problem here?

from swipeback.

offdroid avatar offdroid commented on May 29, 2024

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.

  1. Clone the repository (or download as .zip)
  2. Extract the archive (only if you downloaded it as a .zip)
  3. (In your Android Studio project) File > New > Import Module
  4. "Source directory" -> path [...]/SwipeBack-master/library (wherever you saved it; Important: select the "library" subfolder)
  5. "Module name" -> change from :library to :swipeback
  6. -> "Finish"
  7. (In your application level build.gradle) Add the newly added module as a dependency of your app compile project(':swipeback') (this will replace compile 'com.github.liuguangqiang.swipeback:library:1.0.2@aar')
  8. 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.

minas90 avatar minas90 commented on May 29, 2024

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.

MyApplication7.zip

from swipeback.

avp90 avatar avp90 commented on May 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.