forked from panwrona/MaterialShowcase
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mariusz
committed
Oct 29, 2015
1 parent
7e87138
commit 2231bc0
Showing
22 changed files
with
335 additions
and
70 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
app/src/main/java/com/droidsonroids/materialshowcase/screen_main/MainPresenterImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
app/src/main/java/com/droidsonroids/materialshowcase/utils/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
package com.droidsonroids.materialshowcase.utils; | ||
|
||
public class Constants { | ||
|
||
public static final String REST_ENDPOINT = "https://api.github.com"; | ||
public static final String USER_AGENT = "User-Agent"; | ||
|
||
public static final String PHOTO_PAULINA = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/paulina.jpg"; | ||
public static final String PHOTO_ANETA = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/aneta.jpg"; | ||
public static final String PHOTO_DAWID = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/dawid.jpg"; | ||
public static final String PHOTO_MARIUSZ = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/mariusz.jpg"; | ||
public static final String PHOTO_MAKOR = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/makor.jpg"; | ||
public static final String PHOTO_KAROL = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/karol.jpg"; | ||
public static final String PHOTO_MICHAL = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/michal.jpg"; | ||
public static final String PHOTO_MACIEK = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/maciek.jpg"; | ||
public static final String PHOTO_MARCIN = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/marcin.jpg"; | ||
public static final String PHOTO_SEBA = "http://www.thedroidsonroids.com/wp-content/themes/droidsonroids2015/new-img/team/sebastian.jpg"; | ||
} |
36 changes: 36 additions & 0 deletions
36
app/src/main/java/com/droidsonroids/materialshowcase/utils/FabLayoutBehavior.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.droidsonroids.materialshowcase.utils; | ||
|
||
import android.content.Context; | ||
import android.support.design.widget.CoordinatorLayout; | ||
import android.support.design.widget.FloatingActionButton; | ||
import android.support.v4.view.ViewCompat; | ||
import android.util.AttributeSet; | ||
import android.view.View; | ||
|
||
public class FabLayoutBehavior extends FloatingActionButton.Behavior { | ||
|
||
public FabLayoutBehavior(Context context, AttributeSet attrs) { | ||
super(); | ||
} | ||
|
||
@Override | ||
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, | ||
FloatingActionButton child, View directTargetChild, View target, int nestedScrollAxes) { | ||
return nestedScrollAxes == ViewCompat.SCROLL_AXIS_VERTICAL || | ||
super.onStartNestedScroll(coordinatorLayout, child, directTargetChild, target, | ||
nestedScrollAxes); | ||
} | ||
|
||
@Override | ||
public void onNestedScroll(CoordinatorLayout coordinatorLayout, FloatingActionButton child, | ||
View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) { | ||
super.onNestedScroll(coordinatorLayout, child, target, dxConsumed, dyConsumed, dxUnconsumed, | ||
dyUnconsumed); | ||
|
||
if (dyConsumed > 0 && child.getVisibility() == View.VISIBLE) { | ||
child.hide(); | ||
} else if (dyConsumed < 0 && child.getVisibility() != View.VISIBLE) { | ||
child.show(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<scale | ||
android:fromXScale="1.0" | ||
android:fromYScale="1.0" | ||
android:pivotX="50%" | ||
android:pivotY="50%" | ||
android:toXScale="0" | ||
android:toYScale="0" /> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<scale | ||
android:fromXScale="0.0" | ||
android:fromYScale="0.0" | ||
android:pivotX="50%" | ||
android:pivotY="50%" | ||
android:toXScale="1.0" | ||
android:toYScale="1.0" /> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<translate xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:interpolator="@android:anim/accelerate_interpolator" | ||
android:fromYDelta="0" | ||
android:toYDelta="100%" | ||
android:duration="@android:integer/config_mediumAnimTime"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<translate xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:interpolator="@android:anim/accelerate_interpolator" | ||
android:fromYDelta="0" android:toYDelta="-100%" | ||
android:duration="@android:integer/config_mediumAnimTime"/> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.