Skip to content

Commit febeda8

Browse files
Merge pull request #6 from SimformSolutionsPvtLtd/develop
Develop
2 parents 14cd995 + e086f20 commit febeda8

File tree

12 files changed

+151
-13
lines changed

12 files changed

+151
-13
lines changed

.idea/.name

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Way to contribute
2+
3+
1. Fork the repo and create your branch from `main`.
4+
2. Clone the project to your own machine. (Please have a look at [**Readme.md**](https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/main/README.md) to understand how to run this project on your machine)
5+
3. Commit changes to your own branch
6+
4. Make sure your code lints.
7+
5. Push your work back up to your fork.
8+
6. Issue that pull request!

ISSUE_TEMPLATE/bug_report.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Device Info:**
27+
- Device: [e.g. samsung s20, emulator]
28+
- Android version: [e.g. oreao, android 11]
29+
30+
**Additional context**
31+
Add any other context about the problem here.

ISSUE_TEMPLATE/feature_request.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ SSPullToRefresh uses lottie animations to render high quality animations on pull
1616

1717
| Default refreshView | Custom animation 1 | Custom animation 2 |
1818
|--|--| --|
19-
| ![](default_view.gif) | ![](custom_anim.gif) | ![](custom_anim2.gif) |
19+
| ![](default_anim.gif) | ![](custom_anim.gif) | ![](custom_anim2.gif) |
2020

2121
# How it works:
2222

@@ -36,7 +36,7 @@ SSPullToRefresh uses lottie animations to render high quality animations on pull
3636

3737
```groovy
3838
dependencies {
39-
implementation 'com.github.SimformSolutionsPvtLtd:SSPullToRefresh:1.0'
39+
implementation 'com.github.SimformSolutionsPvtLtd:SSPullToRefresh:1.1'
4040
}
4141
```
4242
2. Wrap your refreshing view ( RecyclerView, listView etc..) with SSPullToRefreshLayout
@@ -173,7 +173,7 @@ Copyright 2021 Simform Solutions
173173

174174
[git-repo-url]: <https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh.git>
175175
[lottie-repo-url]: <https://github.com/airbnb/lottie-android.git>
176-
[stargazers]: <https://www.google.com/>
177-
[Contributing Guide]: <https://www.google.com/>
176+
[stargazers]: <https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/stargazers>
177+
[Contributing Guide]: <https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/main/CONTRIBUTING.md>
178178
[GitHub Issues]: <https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/issues>
179179
[RecyclerRefreshLayout]: <https://github.com/dinuscxj/RecyclerRefreshLayout?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3383>

app/src/main/res/layout/list_item.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="wrap_content"
6+
android:backgroundTint="@color/blue"
67
app:cardCornerRadius="5dp"
78
app:cardElevation="4dp"
89
app:cardPreventCornerOverlap="true"
9-
android:backgroundTint="@color/blue"
1010
app:cardUseCompatPadding="true">
1111

1212
<RelativeLayout
@@ -16,20 +16,21 @@
1616

1717
<ImageView
1818
android:id="@+id/image_view_profile"
19-
android:layout_width="60dp"
19+
android:layout_width="45dp"
2020
android:layout_height="60dp"
2121
android:layout_centerVertical="true"
22+
android:layout_marginStart="5dp"
2223
android:layout_marginEnd="5dp"
2324
android:layout_marginRight="5dp"
24-
android:scaleType="centerInside"
25+
android:scaleType="fitXY"
2526
android:src="@drawable/profile" />
2627

2728
<TableLayout
28-
android:padding="10dp"
2929
android:layout_width="wrap_content"
3030
android:layout_height="wrap_content"
3131
android:layout_toEndOf="@+id/image_view_profile"
3232
android:layout_toRightOf="@+id/image_view_profile"
33+
android:padding="10dp"
3334
android:stretchColumns="0">
3435

3536
<TableRow>
@@ -38,16 +39,18 @@
3839
android:id="@+id/text_view_data"
3940
android:layout_width="wrap_content"
4041
android:layout_height="wrap_content"
41-
android:textStyle="bold"
42-
android:textSize="18sp" />
42+
android:textColor="@color/white"
43+
android:textSize="18sp"
44+
android:textStyle="bold" />
4345
</TableRow>
4446

4547
<TableRow>
4648

4749
<TextView
4850
android:id="@+id/text_view_data2"
4951
android:layout_width="wrap_content"
50-
android:layout_height="wrap_content" />
52+
android:layout_height="wrap_content"
53+
android:textColor="@color/white" />
5154
</TableRow>
5255

5356
</TableLayout>

custom_anim.gif

-1.92 MB
Loading

custom_anim2.gif

1020 KB
Loading

default_anim.gif

4.26 MB
Loading

0 commit comments

Comments
 (0)