From caf02c9f0d0094405e7aa411abb55293ff5521ac Mon Sep 17 00:00:00 2001 From: psx95 Date: Sat, 21 Apr 2018 01:07:18 +0530 Subject: [PATCH 1/5] Minor Refactoring --- .../java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java | 2 +- .../hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java | 4 ---- .../hiddenlinearlayoutview/Utilities/UtilityFunctions.java | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java index 6507fa9..21ccb5d 100644 --- a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java +++ b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java @@ -98,7 +98,7 @@ private void setupAnimations(String animationType) { case 1: Log.d(TAG, "Spring Animation"); SpringAnimationUtil springAnimationUtil = new SpringAnimationUtil(context, inflatedOverLayout, - revealViewPercentageRight, inflatedUnderLayout.findViewById(R.id.revealed_view_right), + revealViewPercentageRight, inflatedUnderLayout, scaleHiddenView, maxMovementFactor, this); SpringAnimation springAnimation = springAnimationUtil.getxAnimation(); if (springAnimation == null) diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java index 22ff3ee..6001754 100644 --- a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java +++ b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java @@ -102,7 +102,6 @@ public boolean onTouch(View v, MotionEvent event) { velocityTracker.addMovement(event); Log.d(TAG,"Motion UP "); if ((event.getRawX() + dX) < -finalPosDiff/2) { - // Toast.makeText(context,"X Animation", Toast.LENGTH_SHORT).show(); Log.d(TAG,"Anim "+(event.getRawX() + dX)); xAnimation.start(); hiddenViewRevealed = true; @@ -134,17 +133,14 @@ else if ((event.getRawX() + dX) > 0){ velocityTracker.recycle(); velocityTracker = null; if ((event.getRawX() + dX) < -finalPosDiff/2) { - // Toast.makeText(context,"X Animation", Toast.LENGTH_SHORT).show(); Log.d(TAG,"Anim "+(event.getRawX() + dX)); xAnimation.start(); hiddenViewRevealed = true; } else if ((event.getRawX() + dX) < 0 && (event.getRawX() + dX) > -finalPosDiff/2){ - // Log.d(TAG,"Reverse Anim "+(event.getRawX() + dX)); reverseXAnim.start(); hiddenViewRevealed = false; } else if ((event.getRawX() + dX) > 0){ - Toast.makeText(context,"Reverse Animation",Toast.LENGTH_SHORT).show(); Log.d(TAG,"reverse Anim "+(event.getRawX() + dX)); reverseXAnim.start(); hiddenViewRevealed = false; diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java index cc7910e..e6320e8 100644 --- a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java +++ b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java @@ -19,7 +19,6 @@ private static float pxToDp(float px, Context context) { public static float convertPixelsToDp(float px, Context context){ Resources resources = context.getResources(); DisplayMetrics metrics = resources.getDisplayMetrics(); - float dp = px / ((float)metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT); - return dp; + return px / ((float)metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT); } } From fdc8f8b0ed1d7cee9e721c19b48cb614c4b5b036 Mon Sep 17 00:00:00 2001 From: psx95 Date: Sat, 21 Apr 2018 01:13:18 +0530 Subject: [PATCH 2/5] Removed Logs and Toasts from Library Files --- .../hiddenlinearlayoutview/HiddenLayoutView.java | 11 ++--------- .../Utilities/FlingAnimationUtil.java | 10 ---------- .../Utilities/SpringAnimationUtil.java | 16 ---------------- .../src/main/res/layout/over_layout_default.xml | 2 +- .../src/main/res/layout/under_layout_default.xml | 2 +- 5 files changed, 4 insertions(+), 37 deletions(-) diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java index 21ccb5d..e201d00 100644 --- a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java +++ b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java @@ -68,7 +68,7 @@ private void initView(AttributeSet attributeSet) { inflatedUnderLayout = under.inflate(); inflatedOverLayout = over.inflate(); } else { - Log.d(TAG, "Layout inflater null"); + Log.e(TAG, "Layout inflater null"); } initListeners(); setupListeners(); @@ -88,7 +88,6 @@ private void initListeners() { overLayoutEventListener = (view) -> { }; animationUpdateListeners = () -> { - Log.d(TAG, "Max Pulled"); }; } @@ -96,13 +95,12 @@ private void setupAnimations(String animationType) { int animType = Integer.parseInt(animationType); switch (animType) { case 1: - Log.d(TAG, "Spring Animation"); SpringAnimationUtil springAnimationUtil = new SpringAnimationUtil(context, inflatedOverLayout, revealViewPercentageRight, inflatedUnderLayout, scaleHiddenView, maxMovementFactor, this); SpringAnimation springAnimation = springAnimationUtil.getxAnimation(); if (springAnimation == null) - Log.wtf(TAG, "SPringanimation is null"); + Log.wtf(TAG, "SpringAnimation is null"); springReverseAnim = springAnimationUtil.getReverseXAnim(); animation = springAnimation; reverseAnimation = springReverseAnim; @@ -121,7 +119,6 @@ private void setupAnimations(String animationType) { private void loadPreferencesFromAttributes(AttributeSet attributeSet) { if (attributeSet != null) { - Log.d(TAG, "Attribute set not null"); TypedArray typedArray = getContext().obtainStyledAttributes(attributeSet, R.styleable.HiddenLayoutView); try { layout_over = typedArray.getResourceId(R.styleable.HiddenLayoutView_layout_over, R.layout.over_layout_default); @@ -132,14 +129,11 @@ private void loadPreferencesFromAttributes(AttributeSet attributeSet) { maxMovementFactor = typedArray.getFloat(R.styleable.HiddenLayoutView_maxMovementFactorForSpring, 2); flingFriction = typedArray.getFloat(R.styleable.HiddenLayoutView_flingFriction, 0.8f); flingFrictionReverse = typedArray.getFloat(R.styleable.HiddenLayoutView_flingFrictionReverse, 0.001f); - Log.d(TAG, "Animation typed Array " + animationType); if (animationType == null || animationType.equals("")) animationType = "2"; } finally { typedArray.recycle(); } - } else { - Log.d(TAG, "Attribute set is null "); } } @@ -227,7 +221,6 @@ public float getFlingFrictionReverse() { @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE) private void closeOpenHiddenView() { - Log.i(TAG, "Closing View"); Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java index dc39fd9..2040753 100644 --- a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java +++ b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java @@ -53,7 +53,6 @@ private void setSpeedForReverseAnimation() { float pixelsRevealed = displayMetrics.widthPixels * minValue; float dpsRevealed = UtilityFunctions.convertPixelsToDp(pixelsRevealed, activityContext); reverseAnimationStartVelocity = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpsRevealed, this.activityContext.getResources().getDisplayMetrics()); - Log.d(TAG, "pixels per second " + reverseAnimationStartVelocity + " \n pixels revealed " + pixelsRevealed); } private void createFlingAnimationForHome(View inflatedOverLayout) { @@ -76,7 +75,6 @@ private void initTouchListener() { boolean clickOccoured = false; switch (event.getAction()) { case MotionEvent.ACTION_DOWN: - Log.d(TAG, "Motion Action Down"); clickStart = Calendar.getInstance().getTimeInMillis(); pressedX = event.getX(); pressedY = event.getY(); @@ -91,17 +89,14 @@ else if (reverseFlingAnimation!=null) if (velocityTracker == null) break; velocityTracker.addMovement(event); - Log.d(TAG, "Motion Action Up"); long clickDuration = Calendar.getInstance().getTimeInMillis() - clickStart; if (clickDuration < CLICK_DURATION_IN_MILLIS && UtilityFunctions.distance(pressedX, pressedY, event.getX(), event.getY(), activityContext) < MOVE_THRESHOLD_IN_DP) { - Log.d(TAG, " Click duration " + clickDuration + " Distance " + UtilityFunctions.distance(pressedX, pressedY, event.getX(), event.getY(), activityContext)); clickOccoured = true; } velocityTracker.recycle(); velocityTracker = null; break; case MotionEvent.ACTION_MOVE: - Log.d(TAG,"ACTION MOVE"); if (velocityTracker == null) break; velocityTracker.addMovement(event); @@ -114,14 +109,12 @@ else if (reverseFlingAnimation!=null) cancelEvent.recycle(); break; case MotionEvent.ACTION_CANCEL: - Log.d(TAG,"ACTION CANCEL"); if (velocityTracker == null) break; velocityTracker.recycle(); velocityTracker = null; long clickDuration1 = Calendar.getInstance().getTimeInMillis() - clickStart; if (clickDuration1 < CLICK_DURATION_IN_MILLIS && UtilityFunctions.distance(pressedX, pressedY, event.getX(), event.getY(), activityContext) < MOVE_THRESHOLD_IN_DP) { - Log.d(TAG, " Click duration " + clickDuration1 + " Distance " + UtilityFunctions.distance(pressedX, pressedY, event.getX(), event.getY(), activityContext)); clickOccoured = true; } break; @@ -138,14 +131,11 @@ else if (reverseFlingAnimation!=null) private void setTouchListenerOnView(View inflatedOverLayout) { if (inflatedOverLayout instanceof ViewGroup) { - Log.d(TAG, "FOUND multiple children inside view"); for (int i = 0; i < ((ViewGroup) inflatedOverLayout).getChildCount(); i++) { View childView = ((ViewGroup) inflatedOverLayout).getChildAt(i); childView.setOnTouchListener(onTouchListener); - Log.d(TAG, " ID " + childView.getId() + " found at pos " + i); } } else { - Log.d(TAG, "No Child views"); inflatedOverLayout.setOnTouchListener(onTouchListener); } } diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java index 6001754..2ce74de 100644 --- a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java +++ b/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java @@ -41,8 +41,6 @@ public SpringAnimationUtil(Context context, View animatedView, float revealViewP ((Activity)animatedView.getContext()).getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); finalPosDiff = displayMetrics.widthPixels * revealViewPercentageRight; maxMovement = maxMovementFactor*finalPosDiff; - Log.i(TAG,"FInal pos Diff "+finalPosDiff); - Log.d(TAG,"MaX Movement allowed "+maxMovement); this.hiddenLayoutView = hiddenLayoutView; this.animatedView = animatedView; this.underLayout = underLayout; @@ -70,7 +68,6 @@ public boolean onTouch(View v, MotionEvent event) { reverseXAnim.cancel(); xAnimation.cancel(); maxReached = false; - Log.d(TAG,"MOTION ACTION DOWN"); velocityTracker = VelocityTracker.obtain(); velocityTracker.addMovement(event); return false; @@ -79,7 +76,6 @@ public boolean onTouch(View v, MotionEvent event) { break; velocityTracker.addMovement(event); float movement = event.getRawX() + dX; - Log.d(TAG,"Movement Action move"+movement); float scaleFactor = movement > 0 ? -0.04f : 0.04f; if (!scalehiddenView) scaleFactor = 0; @@ -100,9 +96,7 @@ public boolean onTouch(View v, MotionEvent event) { if (velocityTracker == null) break; velocityTracker.addMovement(event); - Log.d(TAG,"Motion UP "); if ((event.getRawX() + dX) < -finalPosDiff/2) { - Log.d(TAG,"Anim "+(event.getRawX() + dX)); xAnimation.start(); hiddenViewRevealed = true; } else if ((event.getRawX() + dX) < 0 && (event.getRawX() + dX) > -finalPosDiff/2){ @@ -111,29 +105,22 @@ public boolean onTouch(View v, MotionEvent event) { hiddenViewRevealed = false; } else if ((event.getRawX() + dX) > 0){ - Toast.makeText(context,"Reverse Animation",Toast.LENGTH_SHORT).show(); - Log.d(TAG,"reverse Anim "+(event.getRawX() + dX)); reverseXAnim.start(); hiddenViewRevealed = false; } underLayout.animate().scaleX(1f).setDuration(0).start(); if (Math.abs(event.getRawX() + dX) >= maxMovement) { hiddenLayoutView.animationUpdateListeners.onMaxSpringPull(); - } else { - Log.i(TAG,"Not a max pull event max Movement "+maxMovement +" actual move "+(event.getRawX()+dX)); } - Log.d(TAG,"Motion UP "); velocityTracker.recycle(); velocityTracker = null; break; case MotionEvent.ACTION_CANCEL: - Log.d(TAG,"ACTION CANCEL"); if (velocityTracker == null) break; velocityTracker.recycle(); velocityTracker = null; if ((event.getRawX() + dX) < -finalPosDiff/2) { - Log.d(TAG,"Anim "+(event.getRawX() + dX)); xAnimation.start(); hiddenViewRevealed = true; } else if ((event.getRawX() + dX) < 0 && (event.getRawX() + dX) > -finalPosDiff/2){ @@ -141,15 +128,12 @@ else if ((event.getRawX() + dX) > 0){ hiddenViewRevealed = false; } else if ((event.getRawX() + dX) > 0){ - Log.d(TAG,"reverse Anim "+(event.getRawX() + dX)); reverseXAnim.start(); hiddenViewRevealed = false; } underLayout.animate().scaleX(1f).setDuration(0).start(); if (Math.abs(event.getRawX() + dX) >= maxMovement) { hiddenLayoutView.animationUpdateListeners.onMaxSpringPull(); - } else { - Log.i(TAG,"Not a max pull event max Movement "+maxMovement +" actual move "+(event.getRawX()+dX)); } break; } diff --git a/hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml b/hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml index 850e656..7da63e6 100644 --- a/hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml +++ b/hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml @@ -111,7 +111,7 @@ android:layout_height="wrap_content" android:layout_below="@+id/current_area_home" android:gravity="center" - android:text="ACRES" + android:text="SPEED" android:textSize="12dp" android:textStyle="bold" /> diff --git a/hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml b/hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml index c70e352..8cf1021 100644 --- a/hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml +++ b/hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml @@ -47,7 +47,7 @@ Date: Sat, 21 Apr 2018 02:00:08 +0530 Subject: [PATCH 3/5] Added necessary changes for library upload on bintray --- .idea/caches/build_file_checksums.ser | Bin 609 -> 609 bytes app/build.gradle | 3 ++- build.gradle | 4 ++-- hiddenlinearlayoutview/build.gradle | 26 ++++++++++++++++++++++++++ 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 6975d0737a07a0cfdb2d1329820f640b57064840..70b7f97fe918e904529f6e153fcdda5a8d3fbcfd 100644 GIT binary patch delta 129 zcmV-{0Dk}B1mOgbm;~g$l+ux$cMy;v`~B^^bF#VU+Fc~rZEcey0g^p&OWpZ?BWpj0L0Db@l0000Gids%_7op5#A&A>Ru>jgf jlkx#D6FKO{r!}6Jzb;QxYGCsLDs%u5lW_qXlTZQ?nfy1M delta 129 zcmV-{0Dk}B1mOgbm;~N>=wXqZcMxY}21d{4OT?;_*;xXJ4RwOWpZ?BWpj0L0Db@l0000G&>4YX?31%t1$Y%6MG=Hh jlkx#D6Wl9H1a2fNFt+*inp`gc2y_4ulW_qXlTZQ?)Bi54 diff --git a/app/build.gradle b/app/build.gradle index 88a7089..e21ad3d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,12 +20,13 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + defaultPublishConfig "debug" } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.1.1' - implementation 'com.android.support.constraint:constraint-layout:1.0.2' + implementation 'com.android.support.constraint:constraint-layout:1.1.0' implementation 'com.android.support:design:27.1.1' testImplementation 'junit:junit:4.12' implementation 'com.android.support:support-dynamic-animation:27.1.1' diff --git a/build.gradle b/build.gradle index eccff49..5c37802 100644 --- a/build.gradle +++ b/build.gradle @@ -8,8 +8,8 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.1.1' - - + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/hiddenlinearlayoutview/build.gradle b/hiddenlinearlayoutview/build.gradle index 2037fd4..0a22300 100644 --- a/hiddenlinearlayoutview/build.gradle +++ b/hiddenlinearlayoutview/build.gradle @@ -1,5 +1,29 @@ apply plugin: 'com.android.library' +ext { + bintrayRepo = 'HiddenLayoutView' + bintrayName = 'HiddenLayoutView' + + publishedGroupId = 'com.psx95.hiddenlayoutview' + libraryName = 'HiddenLayoutView' + artifact = 'hidden-layout-view' + + libraryDescription = 'A library to show hidden layouts with built-in animations' + + siteUrl = 'https://github.com/psx95/HiddenLayout' + gitUrl = 'https://github.com/psx95/HiddenLayout.git' + + libraryVersion = '0.1.0' + + developerId = 'psx95' + developerName = 'Pranav Sharma' + developerEmail = 'pranav.ps95@hotmail.com' + + licenseName = 'MIT License' + licenseUrl = 'https://opensource.org/licenses/MIT' + allLicenses = ["MIT"] +} + android { compileSdkVersion 27 @@ -36,3 +60,5 @@ dependencies { androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' implementation 'com.android.support:support-dynamic-animation:27.1.1' } +apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' +apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle' \ No newline at end of file From 86c88bc589b5f42808303019f55b1125aec6b413 Mon Sep 17 00:00:00 2001 From: psx95 Date: Sat, 21 Apr 2018 13:11:44 +0530 Subject: [PATCH 4/5] Renamed Module, made changes for repo upload --- .idea/caches/build_file_checksums.ser | Bin 609 -> 605 bytes app/build.gradle | 2 +- .../.gitignore | 0 .../build.gradle | 6 +++--- .../proguard-rules.pro | 0 .../ExampleInstrumentedTest.java | 0 .../src/main/AndroidManifest.xml | 0 .../HiddenLayoutView.java | 0 .../Interfaces/AnimationUpdateListeners.java | 0 .../Utilities/FlingAnimationUtil.java | 0 .../Utilities/SpringAnimationUtil.java | 0 .../Utilities/UtilityFunctions.java | 0 .../ic_chevron_right_default_color_24dp.xml | 0 .../main/res/drawable/ic_sync_white_24dp.xml | 0 .../src/main/res/layout/hidded_layout.xml | 0 .../src/main/res/layout/over_layout_default.xml | 0 .../main/res/layout/under_layout_default.xml | 0 .../src/main/res/values/attrs.xml | 0 .../src/main/res/values/colors.xml | 0 .../src/main/res/values/strings.xml | 0 .../hiddenlinearlayoutview/ExampleUnitTest.java | 0 settings.gradle | 2 +- 22 files changed, 5 insertions(+), 5 deletions(-) rename {hiddenlinearlayoutview => hidden-layout-view}/.gitignore (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/build.gradle (93%) rename {hiddenlinearlayoutview => hidden-layout-view}/proguard-rules.pro (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/AndroidManifest.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/drawable/ic_sync_white_24dp.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/layout/hidded_layout.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/layout/over_layout_default.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/layout/under_layout_default.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/values/attrs.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/values/colors.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/values/strings.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java (100%) diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 70b7f97fe918e904529f6e153fcdda5a8d3fbcfd..1bb11e2a58a32a995b82b719ce952d72f3be5d1d 100644 GIT binary patch delta 108 zcmV-y0F(dW1lOA7cRW88F2$Etqil)8`Px-Qr%H4H4|8R7bZKs9b1r9c zVPtG&b#VZG00sa601zC>_Ab8fjmMC!B|nfQSUHnV0i_flXlZ0*Wo|8OVR>(LbS-vi OWp`YYp8*z=A_70)rYk4_ delta 112 zcmV-$0FVFO1mOgbm;~g$l+ux$cRY|G`~B^^bF#VU+Fc~rZEbV_4|8R7bZKs9b1r9c zVPtG&b#VZG00sa601&V?#{}*a1CflViR_H#BA}B`0i_rtXlZ0*Wo~R~Ze?L|Y+-qC Sb#!)VWp`YYp8*z=9s)me952WK diff --git a/app/build.gradle b/app/build.gradle index e21ad3d..18fef6e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,5 +32,5 @@ dependencies { implementation 'com.android.support:support-dynamic-animation:27.1.1' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' - implementation project(":hiddenlinearlayoutview") + implementation project(':hidden-layout-view') } diff --git a/hiddenlinearlayoutview/.gitignore b/hidden-layout-view/.gitignore similarity index 100% rename from hiddenlinearlayoutview/.gitignore rename to hidden-layout-view/.gitignore diff --git a/hiddenlinearlayoutview/build.gradle b/hidden-layout-view/build.gradle similarity index 93% rename from hiddenlinearlayoutview/build.gradle rename to hidden-layout-view/build.gradle index 0a22300..ace0d82 100644 --- a/hiddenlinearlayoutview/build.gradle +++ b/hidden-layout-view/build.gradle @@ -1,10 +1,10 @@ apply plugin: 'com.android.library' ext { - bintrayRepo = 'HiddenLayoutView' - bintrayName = 'HiddenLayoutView' + bintrayRepo = 'maven' + bintrayName = 'hidden-layout-view' - publishedGroupId = 'com.psx95.hiddenlayoutview' + publishedGroupId = 'com.psx95' libraryName = 'HiddenLayoutView' artifact = 'hidden-layout-view' diff --git a/hiddenlinearlayoutview/proguard-rules.pro b/hidden-layout-view/proguard-rules.pro similarity index 100% rename from hiddenlinearlayoutview/proguard-rules.pro rename to hidden-layout-view/proguard-rules.pro diff --git a/hiddenlinearlayoutview/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java b/hidden-layout-view/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java similarity index 100% rename from hiddenlinearlayoutview/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java rename to hidden-layout-view/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java diff --git a/hiddenlinearlayoutview/src/main/AndroidManifest.xml b/hidden-layout-view/src/main/AndroidManifest.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/AndroidManifest.xml rename to hidden-layout-view/src/main/AndroidManifest.xml diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java diff --git a/hiddenlinearlayoutview/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml b/hidden-layout-view/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml rename to hidden-layout-view/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml diff --git a/hiddenlinearlayoutview/src/main/res/drawable/ic_sync_white_24dp.xml b/hidden-layout-view/src/main/res/drawable/ic_sync_white_24dp.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/drawable/ic_sync_white_24dp.xml rename to hidden-layout-view/src/main/res/drawable/ic_sync_white_24dp.xml diff --git a/hiddenlinearlayoutview/src/main/res/layout/hidded_layout.xml b/hidden-layout-view/src/main/res/layout/hidded_layout.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/layout/hidded_layout.xml rename to hidden-layout-view/src/main/res/layout/hidded_layout.xml diff --git a/hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml b/hidden-layout-view/src/main/res/layout/over_layout_default.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml rename to hidden-layout-view/src/main/res/layout/over_layout_default.xml diff --git a/hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml b/hidden-layout-view/src/main/res/layout/under_layout_default.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml rename to hidden-layout-view/src/main/res/layout/under_layout_default.xml diff --git a/hiddenlinearlayoutview/src/main/res/values/attrs.xml b/hidden-layout-view/src/main/res/values/attrs.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/values/attrs.xml rename to hidden-layout-view/src/main/res/values/attrs.xml diff --git a/hiddenlinearlayoutview/src/main/res/values/colors.xml b/hidden-layout-view/src/main/res/values/colors.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/values/colors.xml rename to hidden-layout-view/src/main/res/values/colors.xml diff --git a/hiddenlinearlayoutview/src/main/res/values/strings.xml b/hidden-layout-view/src/main/res/values/strings.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/values/strings.xml rename to hidden-layout-view/src/main/res/values/strings.xml diff --git a/hiddenlinearlayoutview/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java b/hidden-layout-view/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java similarity index 100% rename from hiddenlinearlayoutview/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java rename to hidden-layout-view/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java diff --git a/settings.gradle b/settings.gradle index 45d6ea2..e6e46bd 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':app', ':hiddenlinearlayoutview' +include ':app', ':hidden-layout-view' From 4ec3058ce039393f45c1f2e2b6bca68bc4a4d9a5 Mon Sep 17 00:00:00 2001 From: psx95 Date: Sat, 21 Apr 2018 13:11:44 +0530 Subject: [PATCH 5/5] Renamed Module, made changes for repo upload --- .idea/caches/build_file_checksums.ser | Bin 609 -> 605 bytes app/build.gradle | 2 +- .../.gitignore | 0 .../build.gradle | 4 ++-- .../proguard-rules.pro | 0 .../ExampleInstrumentedTest.java | 0 .../src/main/AndroidManifest.xml | 0 .../HiddenLayoutView.java | 0 .../Interfaces/AnimationUpdateListeners.java | 0 .../Utilities/FlingAnimationUtil.java | 0 .../Utilities/SpringAnimationUtil.java | 0 .../Utilities/UtilityFunctions.java | 0 .../ic_chevron_right_default_color_24dp.xml | 0 .../main/res/drawable/ic_sync_white_24dp.xml | 0 .../src/main/res/layout/hidded_layout.xml | 0 .../src/main/res/layout/over_layout_default.xml | 0 .../main/res/layout/under_layout_default.xml | 0 .../src/main/res/values/attrs.xml | 0 .../src/main/res/values/colors.xml | 0 .../src/main/res/values/strings.xml | 0 .../hiddenlinearlayoutview/ExampleUnitTest.java | 0 settings.gradle | 2 +- 22 files changed, 4 insertions(+), 4 deletions(-) rename {hiddenlinearlayoutview => hidden-layout-view}/.gitignore (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/build.gradle (95%) rename {hiddenlinearlayoutview => hidden-layout-view}/proguard-rules.pro (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/AndroidManifest.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/drawable/ic_sync_white_24dp.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/layout/hidded_layout.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/layout/over_layout_default.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/layout/under_layout_default.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/values/attrs.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/values/colors.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/main/res/values/strings.xml (100%) rename {hiddenlinearlayoutview => hidden-layout-view}/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java (100%) diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 70b7f97fe918e904529f6e153fcdda5a8d3fbcfd..203232cf4291a1e2f9c02caa08e35fd978556f39 100644 GIT binary patch delta 132 zcmV-~0DJ%81l_Ab8fjmMC!B|nfQSUHnV0i_flXlZ0*Wo|8OVR>(LbS-vi mWp`YYp8*yV$siz%hl**G%-2;bM@;C%bN~^PaRD2XPy!JP@H6-T delta 129 zcmV-{0Dk}71mOgbm;~g$l+ux$cRY|G`~B^^bF#VU+Fc~rZEbV_4|8R7bZKs9b1r9c zVPtG&b#VZG00sa601&V?#{}*a1CflViR_H#BA}B`0i_rtXlZ0*Wo~R~Ze?L|Y+-qC jb#!)VWp`YYp8*ySIq1fxHJ+EhE>BZxVDkYglP&@;^(Qw+ diff --git a/app/build.gradle b/app/build.gradle index e21ad3d..18fef6e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,5 +32,5 @@ dependencies { implementation 'com.android.support:support-dynamic-animation:27.1.1' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' - implementation project(":hiddenlinearlayoutview") + implementation project(':hidden-layout-view') } diff --git a/hiddenlinearlayoutview/.gitignore b/hidden-layout-view/.gitignore similarity index 100% rename from hiddenlinearlayoutview/.gitignore rename to hidden-layout-view/.gitignore diff --git a/hiddenlinearlayoutview/build.gradle b/hidden-layout-view/build.gradle similarity index 95% rename from hiddenlinearlayoutview/build.gradle rename to hidden-layout-view/build.gradle index 0a22300..124f6ce 100644 --- a/hiddenlinearlayoutview/build.gradle +++ b/hidden-layout-view/build.gradle @@ -2,9 +2,9 @@ apply plugin: 'com.android.library' ext { bintrayRepo = 'HiddenLayoutView' - bintrayName = 'HiddenLayoutView' + bintrayName = 'hidden-layout-view' - publishedGroupId = 'com.psx95.hiddenlayoutview' + publishedGroupId = 'com.psx95' libraryName = 'HiddenLayoutView' artifact = 'hidden-layout-view' diff --git a/hiddenlinearlayoutview/proguard-rules.pro b/hidden-layout-view/proguard-rules.pro similarity index 100% rename from hiddenlinearlayoutview/proguard-rules.pro rename to hidden-layout-view/proguard-rules.pro diff --git a/hiddenlinearlayoutview/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java b/hidden-layout-view/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java similarity index 100% rename from hiddenlinearlayoutview/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java rename to hidden-layout-view/src/androidTest/java/com/psx/hiddenlinearlayoutview/ExampleInstrumentedTest.java diff --git a/hiddenlinearlayoutview/src/main/AndroidManifest.xml b/hidden-layout-view/src/main/AndroidManifest.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/AndroidManifest.xml rename to hidden-layout-view/src/main/AndroidManifest.xml diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/HiddenLayoutView.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Interfaces/AnimationUpdateListeners.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/FlingAnimationUtil.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/SpringAnimationUtil.java diff --git a/hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java b/hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java similarity index 100% rename from hiddenlinearlayoutview/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java rename to hidden-layout-view/src/main/java/com/psx/hiddenlinearlayoutview/Utilities/UtilityFunctions.java diff --git a/hiddenlinearlayoutview/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml b/hidden-layout-view/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml rename to hidden-layout-view/src/main/res/drawable/ic_chevron_right_default_color_24dp.xml diff --git a/hiddenlinearlayoutview/src/main/res/drawable/ic_sync_white_24dp.xml b/hidden-layout-view/src/main/res/drawable/ic_sync_white_24dp.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/drawable/ic_sync_white_24dp.xml rename to hidden-layout-view/src/main/res/drawable/ic_sync_white_24dp.xml diff --git a/hiddenlinearlayoutview/src/main/res/layout/hidded_layout.xml b/hidden-layout-view/src/main/res/layout/hidded_layout.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/layout/hidded_layout.xml rename to hidden-layout-view/src/main/res/layout/hidded_layout.xml diff --git a/hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml b/hidden-layout-view/src/main/res/layout/over_layout_default.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/layout/over_layout_default.xml rename to hidden-layout-view/src/main/res/layout/over_layout_default.xml diff --git a/hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml b/hidden-layout-view/src/main/res/layout/under_layout_default.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/layout/under_layout_default.xml rename to hidden-layout-view/src/main/res/layout/under_layout_default.xml diff --git a/hiddenlinearlayoutview/src/main/res/values/attrs.xml b/hidden-layout-view/src/main/res/values/attrs.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/values/attrs.xml rename to hidden-layout-view/src/main/res/values/attrs.xml diff --git a/hiddenlinearlayoutview/src/main/res/values/colors.xml b/hidden-layout-view/src/main/res/values/colors.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/values/colors.xml rename to hidden-layout-view/src/main/res/values/colors.xml diff --git a/hiddenlinearlayoutview/src/main/res/values/strings.xml b/hidden-layout-view/src/main/res/values/strings.xml similarity index 100% rename from hiddenlinearlayoutview/src/main/res/values/strings.xml rename to hidden-layout-view/src/main/res/values/strings.xml diff --git a/hiddenlinearlayoutview/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java b/hidden-layout-view/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java similarity index 100% rename from hiddenlinearlayoutview/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java rename to hidden-layout-view/src/test/java/com/psx/hiddenlinearlayoutview/ExampleUnitTest.java diff --git a/settings.gradle b/settings.gradle index 45d6ea2..e6e46bd 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':app', ':hiddenlinearlayoutview' +include ':app', ':hidden-layout-view'