Skip to content

Commit

Permalink
Removed useless code
Browse files Browse the repository at this point in the history
Updated readme and changelog
  • Loading branch information
RiccardoMoro committed Jan 2, 2017
1 parent 7e920d1 commit 3fba8a8
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 21 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ Changelog
------
#### New from v1.0.0: <br />
(18/11/2016) <br />
-Initial release <br />
-Initial release <br />

#### New from v1.0.1: <br />
(02/01/2017) <br />
-Removed some useless code <br />
-Updated google libraries and gradle <br />
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Or see the full video demo on YouTube. <br />
https://youtu.be/oSETieldmyw <br /> <br />

A library that let you implement a behaviour similar to the Instagram's <br />
long press to show detail one, with the option to put every kind of views inside it, <br />
long-press to show detail, with the option to put every kind of views inside it, <br />
(even web views, lists, pagers and so on) show tooltips on drag over <br />
and handle the release of the finger over Views <br />

Expand All @@ -20,7 +20,7 @@ Download
------
####Gradle:
```groovy
compile 'com.rm:longpresspopup:1.0.0'
compile 'com.rm:longpresspopup:1.0.1'
```

<br />
Expand Down Expand Up @@ -188,12 +188,17 @@ Also, the LongPressPopup class gives some utility methods, like <br />
* ```public void dismissNow()``` <br />
Which dismiss immediately the popup if open

<br /> <br />
<br />

####Known Bugs
* This library do not work correctly with ListViews (Use RecyclerViews!) <br />

<br /><br />

License
--------

Copyright 2016 Riccardo Moro.
Copyright 2017 Riccardo Moro.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "rm.com.longpresspopupsample"
minSdkVersion 10
Expand All @@ -25,6 +25,6 @@ dependencies {
})
compile 'com.github.bumptech.glide:glide:3.7.0'
compile project(":longpresspopup")
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:design:25.0.1'
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
}
2 changes: 0 additions & 2 deletions app/src/main/res/layout/activity_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>


<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -86,6 +85,5 @@
app:fabSize="normal"
app:rippleColor="@color/colorPrimaryDark"/>
</RelativeLayout>

</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
8 changes: 4 additions & 4 deletions longpresspopup/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext {
siteUrl = 'https://github.com/RiccardoMoro/LongPressPopup'
gitUrl = 'https://github.com/RiccardoMoro/LongPressPopup.git'

libraryVersion = '1.0.0'
libraryVersion = '1.0.1'

developerId = 'RiccardoMoro'
developerName = 'Riccardo Moro'
Expand All @@ -26,13 +26,13 @@ ext {

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
buildToolsVersion "25.0.2"

defaultConfig {
minSdkVersion 10
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionName "1.0.1"
}
buildTypes {
release {
Expand All @@ -46,7 +46,7 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:appcompat-v7:25.1.0'
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.os.Handler;
import android.support.annotation.IntDef;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;

Expand Down Expand Up @@ -49,11 +48,6 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
return false;
}

Log.e(TAG, "Touch event: " + (motionEvent.getAction() == MotionEvent.ACTION_DOWN ? "Down" :
motionEvent.getAction() == MotionEvent.ACTION_UP ? "Up" :
motionEvent.getAction() == MotionEvent.ACTION_CANCEL ? "Cancel" :
motionEvent.getAction() == MotionEvent.ACTION_MOVE ? "Move" :
"Other action"));

// Press register
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN || motionEvent.getAction() ==
Expand Down

0 comments on commit 3fba8a8

Please sign in to comment.