-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from Tapadoo/develop
Develop
- Loading branch information
Showing
13 changed files
with
199 additions
and
52 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
alerter/src/main/java/com/tapadoo/alerter/utils/ExAlert.kt
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,13 @@ | ||
package com.tapadoo.alerter.utils | ||
|
||
import android.app.Activity | ||
import android.os.Build | ||
import androidx.annotation.DimenRes | ||
import androidx.annotation.RequiresApi | ||
import com.tapadoo.alerter.Alert | ||
|
||
fun Alert.getDimenPixelSize(@DimenRes id: Int) = resources.getDimensionPixelSize(id) | ||
|
||
@RequiresApi(Build.VERSION_CODES.P) | ||
fun Alert.notchHeight() = (context as? Activity)?.window?.decorView?.rootWindowInsets?.displayCutout?.safeInsetTop | ||
?: 0 |
10 changes: 10 additions & 0 deletions
10
alerter/src/main/res/anim/alerter_slide_in_from_bottom.xml
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" | ||
android:duration="700" | ||
android:interpolator="@anim/interpolator_slight_overshoot"> | ||
|
||
<translate | ||
android:fromYDelta="100%" | ||
android:toYDelta="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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<set xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:duration="@android:integer/config_longAnimTime" | ||
android:fillAfter="true" | ||
android:interpolator="@anim/interpolator_slight_anticipate"> | ||
|
||
<translate | ||
android:fromYDelta="0%" | ||
android:toYDelta="100%"/> | ||
|
||
</set> |
Oops, something went wrong.