-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1 from aritra-tech/v1.1.3
v1.1.3
- Loading branch information
Showing
6 changed files
with
128 additions
and
40 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
compose_cards/src/main/java/com/aritra/compose_cards/util/Card.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,16 @@ | ||
package com.aritra.compose_cards.util | ||
|
||
import androidx.annotation.DrawableRes | ||
import com.aritra.compose_cards.R | ||
|
||
enum class Card( | ||
@DrawableRes val image: Int | ||
) { | ||
None(R.drawable.ic_visa), | ||
Visa(R.drawable.ic_visa), | ||
Mastercard(R.drawable.ic_mastercard), | ||
RuPay(R.drawable.rupay_logo), | ||
AmericanExpress(R.drawable.amex_logo), | ||
Maestro(R.drawable.maestro), | ||
DinersClub(R.drawable.diner_clubs) | ||
} |
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,12 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="52dp" | ||
android:height="43dp" | ||
android:viewportWidth="52" | ||
android:viewportHeight="43"> | ||
<path | ||
android:pathData="M30.463,42.177C41.723,42.231 52,32.91 52,21.57C52,9.171 41.723,0.6 30.463,0.604H20.773C9.379,0.6 0,9.173 0,21.57C0,32.912 9.379,42.231 20.773,42.177H30.463Z" | ||
android:fillColor="#0079BE"/> | ||
<path | ||
android:pathData="M20.819,2.322C10.407,2.326 1.971,10.842 1.967,21.353C1.971,31.862 10.407,40.379 20.819,40.382C31.233,40.379 39.673,31.862 39.674,21.353C39.673,10.842 31.234,2.326 20.819,2.322ZM8.87,21.353C8.868,18.923 9.599,16.548 10.968,14.54C12.336,12.532 14.279,10.983 16.542,10.097V32.608C14.279,31.722 12.336,30.173 10.967,28.165C9.598,26.157 8.868,23.783 8.87,21.353ZM25.096,32.612V10.096C27.36,10.981 29.305,12.529 30.674,14.538C32.044,16.547 32.775,18.923 32.772,21.354C32.774,23.785 32.043,26.16 30.674,28.169C29.304,30.178 27.36,31.726 25.096,32.612Z" | ||
android:fillColor="#ffffff"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="64dp" | ||
android:height="41dp" | ||
android:viewportWidth="64" | ||
android:viewportHeight="41"> | ||
<group> | ||
<clip-path | ||
android:pathData="M0,0.472h64v39.554h-64z"/> | ||
<path | ||
android:pathData="M64,20.249C64,31.181 55.155,40.026 44.223,40.026C39.609,40.026 35.379,38.433 32.028,35.796C36.642,32.17 39.554,26.566 39.554,20.249C39.554,13.931 36.587,8.328 32.028,4.702C35.379,2.065 39.609,0.472 44.223,0.472C55.155,0.472 64,9.372 64,20.249Z" | ||
android:fillColor="#0099DF"/> | ||
<path | ||
android:pathData="M32.028,4.702C32.028,4.702 32.028,4.702 32.028,4.702C36.587,8.328 39.554,13.931 39.554,20.249C39.554,26.566 36.642,32.17 32.028,35.796L31.972,35.796C27.413,32.225 24.446,26.567 24.446,20.249C24.446,13.932 27.413,8.328 31.972,4.702C31.972,4.702 31.973,4.702 31.972,4.702L32.028,4.702Z" | ||
android:fillColor="#6C6BBD"/> | ||
<path | ||
android:pathData="M24.446,20.249C24.446,13.932 27.413,8.328 31.972,4.702C28.622,2.065 24.391,0.472 19.777,0.472C8.845,0.472 0,9.317 0,20.249C0,31.181 8.845,40.026 19.777,40.026C24.391,40.026 28.622,38.433 31.972,35.796C27.413,32.225 24.446,26.567 24.446,20.249Z" | ||
android:fillColor="#EB001B"/> | ||
</group> | ||
</vector> |