Skip to content

Commit ca0fdb5

Browse files
authored
Merge pull request evrencoskun#359 from MGaetan89/update_license
Update license and add a basic contribution guide
2 parents aa6dee2 + 076af5c commit ca0fdb5

File tree

118 files changed

+2057
-1054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2057
-1054
lines changed

.github/CONTRIBUTING.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Contributing to `TableView`
2+
3+
## Table of contents
4+
5+
- [I need help/I have a question](#i-need-helpi-have-a-question)
6+
- [Reporting a bug](#reporting-a-bug)
7+
- [Suggest a new feature](#suggest-a-new-feature)
8+
- [Contributing to the project](#contributing-to-the-project)
9+
10+
## I need help/I have a question
11+
12+
If you need help to integrate this library in your project, or if you have a generic question about it, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/tableview+android), with the `TableView` and `Android` tags.
13+
14+
## Reporting a bug
15+
16+
If the library is not behaving as you would expect, please [open a new issue](https://github.com/evrencoskun/TableView/issues/new), after checking that it hasn't been reported yet.
17+
Don't forget to provide as much information as you can:
18+
19+
- What are you trying to do?
20+
- What happened instead?
21+
- In case of crash, include the stacktace.
22+
- Which version of the library are you using?
23+
- Which version of Android is this issue happening on?
24+
25+
## Suggest a new feature
26+
27+
If you would like a new feature to be added to the library, please [open a new issue](https://github.com/evrencoskun/TableView/issues/new) to describe it.
28+
29+
## Contributing to the project
30+
31+
Every contribution is welcome to the library. Simply [open a new Pull Request](https://github.com/evrencoskun/TableView/compare) with your changes, so they can be reviewed and merged into the project, and eventually released to everyone.
32+
33+
Note that by making a contribution to this project you are agreeing to have your contributions governed by the [MIT License](https://github.com/evrencoskun/TableView/blob/master/LICENSE) copyright statement.
34+
This means that to the extent possible under law, you transfer all copyright and related or neighbouring rights of the code or documents you contribute to the project itself. You also represent that you have the authority to perform the above waiver with respect to the entirety of you contributions.

CONTRIBUTORS.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22
<img src="https://raw.githubusercontent.com/evrencoskun/TableViewSample/master/art/Logo-5.png" >
3-
<h2>TableView For Android</h2>
3+
<h2>TableView for Android</h2>
44
<p align="center">
55
<p>TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
66
TableView relies on a separate model object to hold and represent the data it displays. This repository also contains a sample app that is
@@ -20,30 +20,30 @@
2020

2121
## Features
2222

23-
- [x] Each column width value can be calculated automatically considering the largest one
24-
- [x] Setting your own model class to displayed in a table view easily.
25-
- [x] TableView has an action listener interface to listen user touch interaction for each cell.
26-
- [x] TableView columns can be sorted in ascending or descending order.
27-
- [x] Hiding & Showing the row and the column is pretty easy.
23+
- [x] Each column width value can be calculated automatically considering the largest one.
24+
- [x] Setting your own model class to be displayed in a table view easily.
25+
- [x] `TableView` has an action listener interface to listen user touch interaction for each cell.
26+
- [x] `TableView` columns can be sorted in ascending or descending order.
27+
- [x] Hiding & showing the rows and columns is pretty easy.
2828
- [x] Filtering by more than one data.
2929
- [x] Pagination functionality.
30-
30+
3131
## What's new
3232

33-
You can check new implementations of TableView on the [release page](https://github.com/evrencoskun/TableView/releases).
33+
You can check new implementations of `TableView` on the [release page](https://github.com/evrencoskun/TableView/releases).
3434

3535
## Table of Contents
36+
3637
- [Installation](#installation)
3738
- [Documentation](#documentation)
3839
- [Sample Apps](#sample-apps)
3940
- [Donations](#donations)
40-
- [Communication](#communication)
4141
- [Contributors](#contributors)
4242
- [License](#license)
4343

4444
## Installation
4545

46-
To use this library in your android project, just simply add the following dependency into your build.gradle
46+
To use this library in your Android project, just add the following dependency into your module's `build.gradle`:
4747

4848
```
4949
dependencies {
@@ -53,26 +53,14 @@ dependencies {
5353

5454
## Documentation
5555

56-
Please check out [wiki page](https://github.com/evrencoskun/TableView/wiki).
57-
56+
Please check out the [project's wiki](https://github.com/evrencoskun/TableView/wiki).
5857

5958
## Sample Apps
6059

61-
- This repository has an Sample Application of TableView.
60+
- This repository has a [sample application](https://github.com/evrencoskun/TableView/tree/master/app) of `TableView`.
6261
- [TableViewSample 2](https://github.com/evrencoskun/TableViewSample2)
6362
- [Xently-UI](https://github.com/ajharry69/Xently-UI)
64-
- (contact me to mention your app on this page)
65-
66-
67-
## Communication
68-
69-
- If you **need help**, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/tableview+android). (Tag 'TableView' and 'Android')
70-
- If you'd like to **ask a general question**, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/tableview+android).
71-
- If you **found a bug**, please open an issue.
72-
- If you **have a feature request**, please open an issue.
73-
- If you **want to contribute**, please submit a pull request.
74-
- If you **use the control**, please contact me to mention your app on this page.
75-
63+
- ([Submit a Pull Request](https://github.com/evrencoskun/TableView/compare) to mention your app on this page)
7664

7765
## Donations
7866

@@ -86,30 +74,35 @@ Please check out [wiki page](https://github.com/evrencoskun/TableView/wiki).
8674
- [**Donate 25 $**](https://www.paypal.me/evrencoshkun): That's some awesome stuff you did right there, dinner is on me!
8775
- Or you can also [**choose what you want to donate**](https://www.paypal.me/evrencoshkun), all donations are awesome!
8876

89-
9077
## Contributors
9178

92-
Contributions of any kind are welcome! I would like to thank the following [contributors](https://github.com/evrencoskun/TableView/blob/master/CONTRIBUTORS.md) for sharing code and
93-
making TableView library a better product.
79+
Contributions of any kind are welcome! I would like to thank all the [contributors](https://github.com/evrencoskun/TableView/graphs/contributors) for sharing code and
80+
making `TableView` a better product.
81+
82+
If you wish to contribute to this project, please refer to our [contributing guide](.github/CONTRIBUTING.md).
9483

9584
## License
9685

97-
Copyright (c) 2017 Evren Coşkun
98-
99-
Permission is hereby granted, free of charge, to any person obtaining a copy
100-
of this software and associated documentation files (the "Software"), to deal
101-
in the Software without restriction, including without limitation the rights
102-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
103-
copies of the Software, and to permit persons to whom the Software is
104-
furnished to do so, subject to the following conditions:
105-
106-
The above copyright notice and this permission notice shall be included in all
107-
copies or substantial portions of the Software.
108-
109-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
110-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
111-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
112-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
113-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
114-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
115-
SOFTWARE.
86+
```
87+
MIT License
88+
89+
Copyright (c) 2021 Evren Coşkun
90+
91+
Permission is hereby granted, free of charge, to any person obtaining a copy
92+
of this software and associated documentation files (the "Software"), to deal
93+
in the Software without restriction, including without limitation the rights
94+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
95+
copies of the Software, and to permit persons to whom the Software is
96+
furnished to do so, subject to the following conditions:
97+
98+
The above copyright notice and this permission notice shall be included in all
99+
copies or substantial portions of the Software.
100+
101+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
102+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
103+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
104+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
105+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
106+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
107+
SOFTWARE.
108+
```

app/build.gradle

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
/*
2-
* Copyright (c) 2018. Evren Coşkun
2+
* MIT License
33
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
4+
* Copyright (c) 2021 Evren Coşkun
75
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
912
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
1515
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
1623
*/
1724

1825
apply plugin: 'com.android.application'

app/src/main/AndroidManifest.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ MIT License
4+
~
5+
~ Copyright (c) 2021 Evren Coşkun
6+
~
7+
~ Permission is hereby granted, free of charge, to any person obtaining a copy
8+
~ of this software and associated documentation files (the "Software"), to deal
9+
~ in the Software without restriction, including without limitation the rights
10+
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
~ copies of the Software, and to permit persons to whom the Software is
12+
~ furnished to do so, subject to the following conditions:
13+
~
14+
~ The above copyright notice and this permission notice shall be included in all
15+
~ copies or substantial portions of the Software.
16+
~
17+
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
~ SOFTWARE.
24+
-->
225
<manifest package="com.evrencoskun.tableviewsample"
326
xmlns:android="http://schemas.android.com/apk/res/android">
427

app/src/main/java/com/evrencoskun/tableviewsample/MainActivity.java

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
/*
2-
* Copyright (c) 2018. Evren Coşkun
2+
* MIT License
33
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
4+
* Copyright (c) 2021 Evren Coşkun
75
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
912
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
1515
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
1623
*/
1724

1825
package com.evrencoskun.tableviewsample;

app/src/main/java/com/evrencoskun/tableviewsample/MainFragment.java

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
/*
2-
* Copyright (c) 2018. Evren Coşkun
2+
* MIT License
33
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
4+
* Copyright (c) 2021 Evren Coşkun
75
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
912
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
1515
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
1623
*/
1724

1825
package com.evrencoskun.tableviewsample;

app/src/main/java/com/evrencoskun/tableviewsample/tableview/TableViewAdapter.java

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
/*
2-
* Copyright (c) 2018. Evren Coşkun
2+
* MIT License
33
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
4+
* Copyright (c) 2021 Evren Coşkun
75
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
912
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
1515
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
1623
*/
1724

1825
package com.evrencoskun.tableviewsample.tableview;
@@ -22,6 +29,9 @@
2229
import android.view.View;
2330
import android.view.ViewGroup;
2431

32+
import androidx.annotation.NonNull;
33+
import androidx.annotation.Nullable;
34+
2535
import com.evrencoskun.tableview.adapter.AbstractTableAdapter;
2636
import com.evrencoskun.tableview.adapter.recyclerview.holder.AbstractViewHolder;
2737
import com.evrencoskun.tableview.sort.SortState;
@@ -35,9 +45,6 @@
3545
import com.evrencoskun.tableviewsample.tableview.model.ColumnHeader;
3646
import com.evrencoskun.tableviewsample.tableview.model.RowHeader;
3747

38-
import androidx.annotation.NonNull;
39-
import androidx.annotation.Nullable;
40-
4148
/**
4249
* Created by evrencoskun on 11/06/2017.
4350
* <p>

0 commit comments

Comments
 (0)