Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/v1.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Feb 27, 2016
2 parents d26c866 + b978cb4 commit 9396115
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ It comes with following features:
The Crossfader Library is pushed to [Maven Central](http://search.maven.org/#search|ga|1|g%3A%22com.mikepenz%22), so you just need to add the following dependency to your `build.gradle`.

```javascript
compile('com.mikepenz:crossfader:1.3.3@aar') {
compile('com.mikepenz:crossfader:1.3.4@aar') {
transitive = true
}
```
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId "com.mikepenz.crossfader.app"
minSdkVersion 10
targetSdkVersion 23
versionCode 133
versionName '1.3.3'
versionCode 134
versionName '1.3.4'

applicationVariants.all { variant ->
variant.outputs.each { output ->
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-beta5'
classpath 'com.android.tools.build:gradle:2.0.0-beta6'
classpath 'com.novoda:bintray-release:0.3.4'
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maven stuff
VERSION_NAME=1.3.3
VERSION_CODE=133
VERSION_NAME=1.3.4
VERSION_CODE=134
GROUP=com.mikepenz

POM_DESCRIPTION=Crossfader Library
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 10
targetSdkVersion 23
versionCode 133
versionName '1.3.3'
versionCode 134
versionName '1.3.4'
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,48 @@ public void setOffset(float slideOffset) {
}
partialView.setVisibility(isOpen() ? View.GONE : VISIBLE);

//if the fullView is hidden we prevent the click on all its views and subviews
//otherwhise enable it again
if (slideOffset == 0 && fullView.isEnabled() || slideOffset != 0 && !fullView.isEnabled()) {
enableDisableView(fullView, slideOffset != 0);
}
}

/**
* helper method to disable a view and all its subviews
*
* @param view
* @param enabled
*/
private void enableDisableView(View view, boolean enabled) {
view.setEnabled(enabled);
if (view instanceof ViewGroup) {
ViewGroup group = (ViewGroup) view;

for (int idx = 0; idx < group.getChildCount(); idx++) {
enableDisableView(group.getChildAt(idx), enabled);
}
}
}

/**
* set the alpha on API 10 devices
*
* @param v
* @param value
*/
private void updateAlphaApi10(View v, float value) {
AlphaAnimation alpha = new AlphaAnimation(value, value);
alpha.setDuration(0); // Make animation instant
alpha.setFillAfter(true); // Tell it to persist after the animation ends
v.startAnimation(alpha);
}

/**
* set the view visibility on pre honeycomb
*
* @param slidingPaneOpened
*/
private void updatePartialViewVisibilityPreHoneycomb(boolean slidingPaneOpened) {
// below API 11 the top view must be moved so it does not consume clicks intended for the bottom view
// this applies curiously even when setting its visibility to GONE
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/res/values/library_crossfader_strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<b>Crossfader</b>
]]>
</string>
<string name="library_crossfader_libraryVersion">1.3.3</string>
<string name="library_crossfader_libraryVersion">1.3.4</string>
<string name="library_crossfader_libraryWebsite">https://github.com/mikepenz/Crossfader</string>
<string name="library_crossfader_licenseId">apache_2_0</string>
<string name="library_crossfader_isOpenSource">true</string>
Expand Down

0 comments on commit 9396115

Please sign in to comment.