Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating Gradle + hideIndeterminateSlider micro-bug #2

Open
lyricalpolymath opened this issue Jul 19, 2014 · 0 comments
Open

updating Gradle + hideIndeterminateSlider micro-bug #2

lyricalpolymath opened this issue Jul 19, 2014 · 0 comments

Comments

@lyricalpolymath
Copy link

Hello,
thanks for providing this code!.
I'm new to Android Studio and Gradle and I might be doing something wrong.

How should one import this library in Android Studio?

this is how I've done it
I've created a new Glass Module inside my project, I've copied there all the files downloaded from your github repo... but when I refresh the build process I got this warning:

Error:(14, 0) Build script error, unsupported Gradle DSL method found: 'release()'!

Which I've solved with this gradle syntax change
http://stackoverflow.com/questions/22257106/build-script-error-unsupported-gradle-dsl-method-found-release
and updating

     compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
     buildToolsVersion "19.1"

I've also found a micro bug in SliderView.hideIndeterminateSlider
problem: when you call it, the indeterminate slide effectively disappears but for some reason, which I couldn't pin point, the normal slider is still visible
To solve this issue I've added this line to the hideIndeterminateSlider

if (paramBoolean) {
            //hide the default slider because for some reason it stays visibile when you hide the indeterminateSlider
            if(this.slider.getVisibility() == View.VISIBLE || this.sliderShowing) hideSlider(true);
            // ...your other code to animate the slider out here

Is this method still relevant or is there another method now to implement the progress bar in Glass?

thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant