Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ gen
target/

*.iml

# Gradle build
library/.gradle/
library/build/
library/local.properties
18 changes: 0 additions & 18 deletions example/example.iml

This file was deleted.

6 changes: 1 addition & 5 deletions library/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="17" />

</manifest>
</manifest>
10 changes: 5 additions & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4.+'
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
apply plugin: 'android-library'
apply plugin: 'com.android.library'

dependencies {
compile 'com.android.support:support-v4:13.0.0'
compile 'com.android.support:support-v4:23.0.1'
}

android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
compileSdkVersion 23
buildToolsVersion '23.0.1'

defaultConfig {
minSdkVersion 7
Expand Down
19 changes: 0 additions & 19 deletions library/library.iml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewConfigurationCompat;
import android.util.AttributeSet;
import android.util.FloatMath;
import android.util.Log;
import android.view.FocusFinder;
import android.view.KeyEvent;
Expand Down Expand Up @@ -300,7 +299,7 @@ public void clearIgnoredViews() {
float distanceInfluenceForSnapDuration(float f) {
f -= 0.5f; // center the values about 0.
f *= 0.3f * Math.PI / 2.0f;
return (float) FloatMath.sin(f);
return (float) Math.sin(f);
}

public int getDestScrollX(int page) {
Expand Down