Skip to content

hi #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 324 commits into
base: add-license-1
Choose a base branch
from
Open

hi #6

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
324 commits
Select commit Hold shift + click to select a range
bda49ba
minor changes
manojbhadane Mar 5, 2019
ecfd738
minor changes
manojbhadane Mar 5, 2019
347d08f
minor changes
manojbhadane Mar 5, 2019
6b02228
minor changes
manojbhadane Mar 5, 2019
f4c2489
minor changes
manojbhadane Mar 5, 2019
c9af3a3
minor changes
manojbhadane Mar 5, 2019
8b38eda
minor changes
manojbhadane Mar 5, 2019
bc6c6a1
minor changes
manojbhadane Mar 5, 2019
1ed432c
minor changes
manojbhadane Mar 5, 2019
2010a46
minor changes
manojbhadane Mar 5, 2019
586ab8b
minor changes
manojbhadane Mar 5, 2019
0bc8455
minor changes
manojbhadane Mar 5, 2019
a43ab7c
minor changes
manojbhadane Mar 5, 2019
bdf51b5
minor changes
manojbhadane Mar 5, 2019
6428835
minor changes
manojbhadane Mar 5, 2019
171628c
minor changes
manojbhadane Mar 5, 2019
8abae6e
minor changes
manojbhadane Mar 5, 2019
3b297da
minor changes
manojbhadane Mar 5, 2019
755e04d
minor changes
manojbhadane Mar 5, 2019
f76ad41
minor changes
manojbhadane Mar 5, 2019
7bab0e0
minor changes
manojbhadane Mar 5, 2019
c51a50a
minor changes
manojbhadane Mar 5, 2019
4479c20
minor changes
manojbhadane Mar 5, 2019
d1c8797
minor changes
manojbhadane Mar 5, 2019
b2ec671
minor changes
manojbhadane Mar 5, 2019
c6c14fa
minor changes
manojbhadane Mar 5, 2019
94dd447
minor changes
manojbhadane Mar 5, 2019
d1e5b4b
minor changes
manojbhadane Mar 5, 2019
005ec0f
minor changes
manojbhadane Mar 6, 2019
9467538
minor changes
manojbhadane Mar 6, 2019
91d56a5
minor changes
manojbhadane Mar 6, 2019
848fd97
minor changes
manojbhadane Mar 6, 2019
ab1b40e
minor changes
manojbhadane Mar 6, 2019
23cac52
minor changes
manojbhadane Mar 6, 2019
2a12b8a
minor changes
manojbhadane Mar 6, 2019
1fe6248
minor changes
manojbhadane Mar 6, 2019
53fe698
minor changes
manojbhadane Mar 6, 2019
9307574
minor changes
manojbhadane Mar 6, 2019
6d6b165
minor changes
manojbhadane Mar 8, 2019
fb029f3
minor changes
manojbhadane Mar 8, 2019
2012eb1
minor changes
manojbhadane Mar 8, 2019
12cd833
minor changes
manojbhadane Mar 8, 2019
c831d9e
minor changes
manojbhadane Mar 8, 2019
03375c0
minor changes
manojbhadane Mar 8, 2019
6b8dfb7
minor changes
manojbhadane Mar 8, 2019
feb8c8d
minor changes
manojbhadane Mar 8, 2019
ce56e52
minor changes
manojbhadane Mar 8, 2019
14e430d
minor changes
manojbhadane Mar 8, 2019
e60f2db
minor changes
manojbhadane Mar 9, 2019
f5f1566
minor changes
manojbhadane Mar 9, 2019
17ffbb9
minor changes
manojbhadane Mar 9, 2019
252e4a7
minor changes
manojbhadane Mar 9, 2019
59d0666
minor changes
manojbhadane Mar 9, 2019
49c217e
minor changes
manojbhadane Mar 9, 2019
521d93b
minor changes
manojbhadane Mar 9, 2019
9499977
minor changes
manojbhadane Mar 9, 2019
388e705
minor changes
manojbhadane Mar 9, 2019
99f39ed
minor changes
manojbhadane Mar 9, 2019
1fbf2f9
minor changes
manojbhadane Mar 15, 2019
eeb948f
minor changes
manojbhadane Mar 15, 2019
61c0b1f
minor changes
manojbhadane Mar 15, 2019
34c9977
minor changes
manojbhadane Mar 15, 2019
091a777
minor changes
manojbhadane Mar 15, 2019
c6b794b
minor changes
manojbhadane Mar 15, 2019
df6d411
minor changes
manojbhadane Mar 15, 2019
2d631ad
minor changes
manojbhadane Mar 15, 2019
14d2d4f
minor changes
manojbhadane Mar 15, 2019
739651c
minor changes
manojbhadane Mar 15, 2019
a42e285
minor changes
manojbhadane Mar 16, 2019
39db2e6
minor changes
manojbhadane Mar 16, 2019
2b0d39b
minor changes
manojbhadane Mar 16, 2019
ae01ec9
minor changes
manojbhadane Mar 16, 2019
c6ee4a7
minor changes
manojbhadane Mar 16, 2019
9ea5003
minor changes
manojbhadane Mar 16, 2019
47eab28
minor changes
manojbhadane Mar 16, 2019
f246334
minor changes
manojbhadane Mar 16, 2019
c57ff6f
minor changes
manojbhadane Mar 16, 2019
addc361
minor changes
manojbhadane Mar 16, 2019
4b2a846
minor changes
manojbhadane Apr 4, 2019
01d991a
minor changes
manojbhadane Apr 4, 2019
69c9678
minor changes
manojbhadane Apr 4, 2019
38037a8
minor changes
manojbhadane Apr 4, 2019
2260636
minor changes
manojbhadane Apr 4, 2019
055245e
minor changes
manojbhadane Apr 4, 2019
d72a447
minor changes
manojbhadane Apr 4, 2019
0e80b48
minor changes
manojbhadane Apr 4, 2019
7f3ecb9
minor changes
manojbhadane Apr 4, 2019
266be67
minor changes
manojbhadane Apr 4, 2019
95f7e44
minor changes
manojbhadane Apr 8, 2019
a739e39
minor changes
manojbhadane Apr 8, 2019
c15105f
minor changes
manojbhadane Apr 8, 2019
159ba79
minor changes
manojbhadane Apr 8, 2019
635c0dd
minor changes
manojbhadane Apr 8, 2019
117f9db
minor changes
manojbhadane Apr 8, 2019
02b36cb
minor changes
manojbhadane Apr 8, 2019
97fd316
minor changes
manojbhadane Apr 8, 2019
e677fbc
minor changes
manojbhadane Apr 8, 2019
85d0a93
minor changes
manojbhadane Apr 8, 2019
a7777b8
minor changes
manojbhadane Apr 29, 2019
7b7e669
minor changes
manojbhadane Apr 29, 2019
ca76057
minor changes
manojbhadane Apr 29, 2019
e0d2577
minor changes
manojbhadane Apr 29, 2019
43d0375
minor changes
manojbhadane Apr 29, 2019
bb21fa8
minor changes
manojbhadane Apr 29, 2019
dffbc27
minor changes
manojbhadane Apr 29, 2019
28ea8f3
minor changes
manojbhadane Apr 29, 2019
acc33bb
minor changes
manojbhadane Apr 29, 2019
8799112
minor changes
manojbhadane Apr 29, 2019
45bd6c7
Update README.md
manojbhadane Apr 29, 2019
1f91df4
minor changes
manojbhadane May 24, 2019
704ff15
minor changes
manojbhadane May 24, 2019
e23de1c
minor changes
manojbhadane May 24, 2019
fce9ee9
minor changes
manojbhadane May 24, 2019
60e1037
minor changes
manojbhadane May 24, 2019
87e6f46
minor changes
manojbhadane May 24, 2019
b5040bf
minor changes
manojbhadane May 24, 2019
a0c06d1
minor changes
manojbhadane May 24, 2019
85e28d4
minor changes
manojbhadane May 24, 2019
2c81a49
minor changes
manojbhadane May 24, 2019
08d7011
minor changes
manojbhadane May 28, 2019
f224ea5
minor changes
manojbhadane May 28, 2019
eb509b4
minor changes
manojbhadane May 28, 2019
80671a7
Merge branch 'master' of https://github.com/manojbhadane/PaymentCardView
manojbhadane May 28, 2019
9a9fec2
minor changes
manojbhadane May 28, 2019
45bdf1a
minor changes
manojbhadane May 28, 2019
7cb201a
minor changes
manojbhadane May 28, 2019
97a3490
minor changes
manojbhadane May 28, 2019
cf69897
minor changes
manojbhadane May 28, 2019
b7f924f
minor changes
manojbhadane May 28, 2019
aaaebeb
minor changes
manojbhadane May 28, 2019
339b8e9
minor changes
manojbhadane May 28, 2019
c6dceb2
minor changes
manojbhadane May 28, 2019
08c00a0
minor changes
manojbhadane May 28, 2019
b5b5ca4
minor changes
manojbhadane Jun 6, 2019
78c6b10
minor changes
manojbhadane Jun 6, 2019
d33eb7c
minor changes
manojbhadane Jun 6, 2019
dc80d98
minor changes
manojbhadane Jun 6, 2019
db092f3
minor changes
manojbhadane Jun 6, 2019
9ae43c6
minor changes
manojbhadane Jun 6, 2019
84c823e
minor changes
manojbhadane Jun 6, 2019
49c3f96
minor changes
manojbhadane Jun 6, 2019
6371e13
minor changes
manojbhadane Jun 6, 2019
af0ecd7
minor changes
manojbhadane Jun 6, 2019
5af318b
minor changes
manojbhadane Jul 1, 2019
e390821
minor changes
manojbhadane Jul 1, 2019
07cc69a
minor changes
manojbhadane Jul 1, 2019
82fb770
minor changes
manojbhadane Jul 1, 2019
b2fc6c5
minor changes
manojbhadane Jul 1, 2019
97fd96e
minor changes
manojbhadane Jul 1, 2019
77d70b1
minor changes
manojbhadane Jul 1, 2019
f5a25a3
minor changes
manojbhadane Jul 1, 2019
bb913a1
minor changes
manojbhadane Jul 1, 2019
f893a40
minor changes
manojbhadane Jul 1, 2019
3e9346a
minor changes
manojbhadane Jul 6, 2019
e01d6ba
minor changes
manojbhadane Jul 6, 2019
244efe5
minor changes
manojbhadane Jul 6, 2019
a44530a
minor changes
manojbhadane Jul 6, 2019
9a16308
minor changes
manojbhadane Jul 6, 2019
4a782a2
minor changes
manojbhadane Jul 6, 2019
47319ac
minor changes
manojbhadane Jul 6, 2019
862be89
minor changes
manojbhadane Jul 6, 2019
99ecf22
minor changes
manojbhadane Jul 6, 2019
0a65491
minor changes
manojbhadane Jul 6, 2019
0eac67b
minor changes
manojbhadane Jul 8, 2019
9fcbd42
minor changes
manojbhadane Jul 8, 2019
8c2ba43
minor changes
manojbhadane Jul 8, 2019
646f637
minor changes
manojbhadane Jul 8, 2019
71ede15
minor changes
manojbhadane Jul 8, 2019
c71d7db
minor changes
manojbhadane Jul 8, 2019
7cad398
minor changes
manojbhadane Jul 8, 2019
3fa06bb
minor changes
manojbhadane Jul 8, 2019
319e36f
minor changes
manojbhadane Jul 8, 2019
525f6cf
minor changes
manojbhadane Jul 8, 2019
61e3d73
minor changes
manojbhadane Jul 10, 2019
252696a
minor changes
manojbhadane Jul 10, 2019
f1f63d5
minor changes
manojbhadane Jul 10, 2019
37ac186
minor changes
manojbhadane Jul 10, 2019
6b88f85
minor changes
manojbhadane Jul 10, 2019
6680d5d
minor changes
manojbhadane Jul 10, 2019
5bf4b93
minor changes
manojbhadane Jul 10, 2019
0251baa
minor changes
manojbhadane Jul 10, 2019
5515e1f
minor changes
manojbhadane Jul 10, 2019
a6f05bd
minor changes
manojbhadane Jul 10, 2019
c8326df
minor changes
manojbhadane Jul 12, 2019
6ec9007
minor changes
manojbhadane Jul 12, 2019
35a954e
minor changes
manojbhadane Jul 12, 2019
eb448f6
minor changes
manojbhadane Jul 12, 2019
df1e9c4
minor changes
manojbhadane Jul 12, 2019
1f6e1df
minor changes
manojbhadane Jul 12, 2019
135bb0f
minor changes
manojbhadane Jul 12, 2019
76bdd75
minor changes
manojbhadane Jul 12, 2019
14f1fa1
minor changes
manojbhadane Jul 12, 2019
0652553
minor changes
manojbhadane Jul 12, 2019
4aeacf4
minor changes
manojbhadane Sep 7, 2019
2b0edb6
minor changes
manojbhadane Sep 7, 2019
ac1e03d
minor changes
manojbhadane Sep 7, 2019
7c55a59
minor changes
manojbhadane Sep 7, 2019
33edfda
minor changes
manojbhadane Sep 8, 2019
04d56b1
minor changes
manojbhadane Sep 8, 2019
18ffb39
minor changes
manojbhadane Sep 8, 2019
2e18543
minor changes
manojbhadane Sep 21, 2019
5b4f5c6
minor changes
manojbhadane Sep 21, 2019
ee4c345
minor changes
manojbhadane Sep 21, 2019
7bb1682
minor changes
manojbhadane Sep 21, 2019
992d810
minor changes
manojbhadane Sep 21, 2019
5c53c6e
minor changes
manojbhadane Sep 21, 2019
7749ca7
minor changes
manojbhadane Sep 21, 2019
056bda5
minor changes
manojbhadane Sep 21, 2019
a0d289a
minor changes
manojbhadane Sep 21, 2019
d9fed58
minor changes
manojbhadane Sep 21, 2019
91993db
minor changes
manojbhadane Sep 21, 2019
c930a72
minor changes
manojbhadane Sep 21, 2019
a98d793
minor changes
manojbhadane Dec 8, 2019
0c69bfa
minor changes
manojbhadane Dec 8, 2019
bd05b3c
minor changes
manojbhadane Dec 8, 2019
fa57cf0
minor changes
manojbhadane Dec 8, 2019
5d6464a
minor changes
manojbhadane Dec 8, 2019
358955d
minor changes
manojbhadane Dec 8, 2019
7bffe01
minor changes
manojbhadane Dec 8, 2019
c44c4e2
minor changes
manojbhadane Dec 8, 2019
a9d2fa9
minor changes
manojbhadane Dec 8, 2019
debb608
minor changes
manojbhadane Dec 8, 2019
08aca13
minor changes
manojbhadane Dec 8, 2019
078252d
minor changes
manojbhadane Dec 8, 2019
1292ea6
minor changes
manojbhadane Dec 8, 2019
5ab4ab7
minor changes
manojbhadane Aug 4, 2020
ec2d1bb
minor changes
manojbhadane Aug 4, 2020
165482a
minor changes
manojbhadane Aug 4, 2020
3c4d696
minor changes
manojbhadane Aug 4, 2020
bd144e2
minor changes
manojbhadane Aug 4, 2020
8249088
minor changes
manojbhadane Aug 4, 2020
b3bc8fc
minor changes
manojbhadane Aug 4, 2020
6b938dc
minor changes
manojbhadane Aug 4, 2020
c4d6f36
minor changes
manojbhadane Aug 4, 2020
5afc5e8
minor changes
manojbhadane Aug 4, 2020
8cf437f
minor changes
manojbhadane Aug 8, 2020
6a3c0b0
minor changes
manojbhadane Aug 8, 2020
0a9f7ed
minor changes
manojbhadane Aug 8, 2020
64f34f7
minor changes
manojbhadane Aug 8, 2020
efebf7f
minor changes
manojbhadane Aug 8, 2020
1eae9d6
minor changes
manojbhadane Aug 8, 2020
4bcc37f
minor changes
manojbhadane Aug 8, 2020
c6951c2
minor changes
manojbhadane Aug 8, 2020
b5a26df
minor changes
manojbhadane Aug 8, 2020
85de293
minor changes
manojbhadane Aug 8, 2020
926c9bb
Update README.md
manojbhadane Mar 3, 2022
2f17618
Update README.md
manojbhadane Mar 3, 2022
aaa934c
Update README.md
manojbhadane Mar 3, 2022
9cd4c48
Create main.yml
pinneno Jun 2, 2022
7294919
Merge pull request #5 from pinneno/master
manojbhadane Jun 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
10 changes: 8 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 39 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

![enter image description here](https://raw.githubusercontent.com/manojbhadane/PaymentCardView/master/PaymentCardView.png)
# Payment Card View
# Payment Card View [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=An%20easy%20to%20use,customizable,Payment%20card%20view%20for%20Android%20&url=https://github.com/manojbhadane/PaymentCardView)

An easy-to-use, customizable, Payment card view for Android.

### Specs
Expand All @@ -15,23 +16,24 @@ This library is available in **jCenter** which is the default Maven repository u

## Gradle
**Step 1.** Add it in your root build.gradle at the end of repositories
```gradle
```Gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

**Step 2.** Add the dependency in your apps module build.gradle
```gradle
```Gradle
dependencies {
implementation 'com.github.manojbhadane:PaymentCardView:v1.3'
}
implementation 'com.github.manojbhadane:PaymentCardView:v1.3'
}
```

### Spread Some :heart:
[![GitHub followers](https://img.shields.io/github/followers/manojbhadane.svg?style=social&label=Follow)](https://github.com/manojbhadane) [![Twitter Follow](https://img.shields.io/twitter/follow/manojbhadane.svg?style=social)](https://twitter.com/Manoj_bhadane)
[![GitHub followers](https://img.shields.io/github/followers/manojbhadane.svg?style=social&label=Follow)](https://github.com/manojbhadane) [![Twitter Follow](https://img.shields.io/twitter/follow/manojbhadane.svg?style=social)](https://twitter.com/manojbhadane_in)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

twitter handle is incorrect on this page. Please correct it with https://twitter.com/manojbhadane_in


# Usage
**XML**
Expand Down Expand Up @@ -90,6 +92,11 @@ paymentCard.setCardTitle("Pay Now"); // Change the submit button text
paymentCard.setSubmitButtonText("Done"); // Change the card title text
```

# Bugs or Requests

If you encounter any problems feel free to open an [issue](https://github.com/manojbhadane/PaymentCardView/issues/new?assignees=&labels=&template=bug_report.md). If you feel the library is missing a feature, please raise a [ticket](https://github.com/manojbhadane/PaymentCardView/issues/new?assignees=&labels=&template=feature_request.md) on GitHub and I'll look into it. Pull request are also welcome.


# About The Author

### Manoj Bhadane
Expand All @@ -99,25 +106,33 @@ Android & Backend Developer.

<a href="https://medium.com/@manojbhadane"><img src="https://github.com/manojbhadane/Social-Icons/blob/master/medium-icon.png?raw=true" width="60"></a>
<a href="https://stackoverflow.com/users/4034678/manoj-bhadane"><img src="https://github.com/manojbhadane/Social-Icons/blob/master/stackoverflow-icon.png?raw=true" width="60"></a>
<a href="https://twitter.com/Manoj_bhadane"><img src="https://github.com/manojbhadane/Social-Icons/blob/master/twitter-icon.png?raw=true" width="60"></a>
<a href="https://twitter.com/manojbhadane"><img src="https://github.com/manojbhadane/Social-Icons/blob/master/twitter-icon.png?raw=true" width="60"></a>
<a href="https://in.linkedin.com/in/manojbhadane"><img src="https://github.com/manojbhadane/Social-Icons/blob/master/linkedin-icon.png?raw=true" width="60"></a>

# License

```
Copyright 2019 manojbhadane

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
MIT License

Copyright (c) 2019 Manoj Bhadane

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```


Expand Down
Binary file added appproject.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added appproject1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Tue Mar 05 18:07:17 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
Binary file added payment_dependacy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 13 additions & 15 deletions paymentcardview/src/main/java/com/manojbhadane/PaymentCardView.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.*;
Expand All @@ -17,21 +16,20 @@ public class PaymentCardView extends RelativeLayout {

private static final char space = ' ';

private Context mContext;
private Button mBtnSubmit;
private ImageView mImgCard;
private TextView mTxtCardTitle;
private Typeface RegularTypeFace;
private EditText mEdtCardNumber, mEdtCvv;
private EditText mSpinnerMonth, mSpinnerYear;
private ImageView mImgCard;
private OnPaymentCardEventListener mListener;
private Context mContext;

private Typeface RegularTypeFace;

/**
* Version Commit guide on Jitpack , execute follwing commands
*
* git tag -a v1.2 -m "first commit"
* git push origin v1.2
* <p>
* git tag -a v1.2 -m "first commit"
* git push origin v1.2
*
* @param context
* @param attrs
Expand Down Expand Up @@ -133,13 +131,13 @@ public void onClick(View view) {
if (mSpinnerYear.getText().length() > 0) {
if (mEdtCardNumber.getText().length() == 19) {
// if (isValidCardNumber(mEdtCardNumber.getText().toString())) {
if (mEdtCvv.getText().length() == 3) {
if (mListener != null)
mListener.onCardDetailsSubmit(mSpinnerMonth.getText().toString(), mSpinnerYear.getText().toString(), mEdtCardNumber.getText().toString(), mEdtCvv.getText().toString());
} else {
if (mListener != null)
mListener.onError("Enter valid CVV");
}
if (mEdtCvv.getText().length() == 3) {
if (mListener != null)
mListener.onCardDetailsSubmit(mSpinnerMonth.getText().toString(), mSpinnerYear.getText().toString(), mEdtCardNumber.getText().toString(), mEdtCvv.getText().toString());
} else {
if (mListener != null)
mListener.onError("Enter valid CVV");
}
// } else {
// if (mListener != null)
// mListener.onError("Enter valid card number");
Expand Down
Loading