Skip to content

Commit

Permalink
res removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ppamorim committed May 12, 2015
1 parent bcdc195 commit 7dc22f9
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 41 deletions.
7 changes: 1 addition & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:1.2.3'
}
}

Expand Down
Binary file removed dragger/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed dragger/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed dragger/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed dragger/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import com.github.ppamorim.dragger.R;

public class DraggerPanel extends FrameLayout {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.os.Debug;
import android.os.Handler;
import android.support.v4.view.MotionEventCompat;
import android.support.v4.view.ViewCompat;
Expand All @@ -29,7 +28,6 @@
import android.view.View;
import android.widget.AbsListView;
import android.widget.FrameLayout;
import android.widget.ListView;
import com.nineoldandroids.view.ViewHelper;

/**
Expand Down Expand Up @@ -178,36 +176,6 @@ private void setHorizontalDragRange(float horizontalDragRange) {
this.horizontalDragRange = horizontalDragRange;
}

public void setListViewPosition(final ListView listView) {
listView.setOnScrollListener(new AbsListView.OnScrollListener() {
@Override public void onScrollStateChanged(AbsListView view, int scrollState) {

}

@Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
int totalItemCount) {

switch (dragPosition) {
case TOP:
default:
if(firstVisibleItem > 0) {
return;
}
setCanSlide(canScrollUp(listView));
break;
case BOTTOM:
if(firstVisibleItem < totalItemCount) {
return;
}
setCanSlide(canScrollDown(listView));
break;
}

}
});

}

public boolean isListOnTop() {
return canSlide;
}
Expand Down Expand Up @@ -355,7 +323,7 @@ private void openActivity() {
}

public void closeActivity() {
if(dragPosition != null) {
if (dragPosition != null) {
switch (dragPosition) {
case LEFT:
closeFromCenterToLeft();
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

0 comments on commit 7dc22f9

Please sign in to comment.