-
Notifications
You must be signed in to change notification settings - Fork 0
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 #10 from ozgurg/dev
release: v2.3.0
- Loading branch information
Showing
25 changed files
with
902 additions
and
72 deletions.
There are no files selected for viewing
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.
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
17 changes: 17 additions & 0 deletions
17
lib/src/main/java/og/android/lib/toggleiconview/sharp/AirplaneModeOnOff.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,17 @@ | ||
package og.android.lib.toggleiconview.sharp | ||
|
||
import android.content.Context | ||
import android.util.AttributeSet | ||
import og.android.lib.toggleiconview.R | ||
import og.android.lib.toggleiconview.ToggleIconView | ||
|
||
class AirplaneModeOnOff @JvmOverloads constructor( | ||
context: Context, | ||
attrs: AttributeSet? = null, | ||
defStyleAttr: Int = 0 | ||
) : | ||
ToggleIconView( | ||
context, attrs, defStyleAttr, | ||
R.drawable.sharp_airplanemode_on_to_off, | ||
R.drawable.sharp_airplanemode_off_to_on | ||
) |
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
45 changes: 45 additions & 0 deletions
45
lib/src/main/res/drawable/sharp_airplanemode_off_to_on.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,45 @@ | ||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:aapt="http://schemas.android.com/aapt"> | ||
<aapt:attr name="android:drawable"> | ||
<vector | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:name="strike" | ||
android:fillColor="@android:color/black" | ||
android:pathData="M 2 4.27 L 3.27 3 L 3.27 3 L 2 4.27 Z" /> | ||
<clip-path | ||
android:name="mask" | ||
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 L 0 0 Z M 4.54 1.73 L 3.27 3 L 3.27 3 L 4.54 1.73 Z" /> | ||
<path | ||
android:fillColor="@android:color/black" | ||
android:pathData="M 22 16 L 22 14 L 13.5 9 L 13.5 3.5 C 13.5 2.67 12.83 2 12 2 C 11.17 2 10.5 2.67 10.5 3.5 L 10.5 9 L 2 14 L 2 16 L 10.5 13.5 L 10.5 19 L 8 20.5 L 8 22 L 12 21 L 16 22 L 16 20.5 L 13.5 19 L 13.5 13.5 L 22 16 Z" /> | ||
</vector> | ||
</aapt:attr> | ||
|
||
<target android:name="strike"> | ||
<aapt:attr name="android:animation"> | ||
<objectAnimator | ||
android:duration="@android:integer/config_shortAnimTime" | ||
android:interpolator="@android:interpolator/fast_out_slow_in" | ||
android:propertyName="pathData" | ||
android:valueFrom="M 19.73 22 L 21 20.73 L 3.27 3 L 2 4.27 Z" | ||
android:valueTo="M 2 4.27 L 3.27 3 L 3.27 3 L 2 4.27 Z" | ||
android:valueType="pathType" /> | ||
</aapt:attr> | ||
</target> | ||
|
||
<target android:name="mask"> | ||
<aapt:attr name="android:animation"> | ||
<objectAnimator | ||
android:duration="@android:integer/config_shortAnimTime" | ||
android:interpolator="@android:interpolator/fast_out_slow_in" | ||
android:propertyName="pathData" | ||
android:valueFrom="M 0 0 L 24 0 L 24 24 L 0 24 L 0 0 Z M 4.54 1.73 L 3.27 3 L 21 20.73 L 22.27 19.46 Z" | ||
android:valueTo="M 0 0 L 24 0 L 24 24 L 0 24 L 0 0 Z M 4.54 1.73 L 3.27 3 L 3.27 3 L 4.54 1.73 Z" | ||
android:valueType="pathType" /> | ||
</aapt:attr> | ||
</target> | ||
</animated-vector> |
45 changes: 45 additions & 0 deletions
45
lib/src/main/res/drawable/sharp_airplanemode_on_to_off.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,45 @@ | ||
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:aapt="http://schemas.android.com/aapt"> | ||
<aapt:attr name="android:drawable"> | ||
<vector | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:name="strike" | ||
android:fillColor="@android:color/black" | ||
android:pathData="M 2 4.27 L 3.27 3 L 3.27 3 L 2 4.27 Z" /> | ||
<clip-path | ||
android:name="mask" | ||
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 L 0 0 Z M 4.54 1.73 L 3.27 3 L 3.27 3 L 4.54 1.73 Z" /> | ||
<path | ||
android:fillColor="@android:color/black" | ||
android:pathData="M 22 16 L 22 14 L 13.5 9 L 13.5 3.5 C 13.5 2.67 12.83 2 12 2 C 11.17 2 10.5 2.67 10.5 3.5 L 10.5 9 L 2 14 L 2 16 L 10.5 13.5 L 10.5 19 L 8 20.5 L 8 22 L 12 21 L 16 22 L 16 20.5 L 13.5 19 L 13.5 13.5 L 22 16 Z" /> | ||
</vector> | ||
</aapt:attr> | ||
|
||
<target android:name="strike"> | ||
<aapt:attr name="android:animation"> | ||
<objectAnimator | ||
android:duration="@android:integer/config_shortAnimTime" | ||
android:interpolator="@android:interpolator/fast_out_slow_in" | ||
android:propertyName="pathData" | ||
android:valueFrom="M 2 4.27 L 3.27 3 L 3.27 3 L 2 4.27 Z" | ||
android:valueTo="M 19.73 22 L 21 20.73 L 3.27 3 L 2 4.27 Z" | ||
android:valueType="pathType" /> | ||
</aapt:attr> | ||
</target> | ||
|
||
<target android:name="mask"> | ||
<aapt:attr name="android:animation"> | ||
<objectAnimator | ||
android:duration="@android:integer/config_shortAnimTime" | ||
android:interpolator="@android:interpolator/fast_out_slow_in" | ||
android:propertyName="pathData" | ||
android:valueFrom="M 0 0 L 24 0 L 24 24 L 0 24 L 0 0 Z M 4.54 1.73 L 3.27 3 L 3.27 3 L 4.54 1.73 Z" | ||
android:valueTo="M 0 0 L 24 0 L 24 24 L 0 24 L 0 0 Z M 4.54 1.73 L 3.27 3 L 21 20.73 L 22.27 19.46 Z" | ||
android:valueType="pathType" /> | ||
</aapt:attr> | ||
</target> | ||
</animated-vector> |
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
Oops, something went wrong.