All Projects → yshrsmz → Licenseadapter

yshrsmz / Licenseadapter

Licence: apache-2.0
adapter for RecyclerView to display app's oss dependencies' license

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Licenseadapter

Airbnb Android Google Map View
This is a sample Android Application which has Google Map view similar to what AirBnb Android Application. Moving Markers like Uber/Ola. Custom Google Search for places. Recycler view with Animations added.
Stars: ✭ 175 (-16.27%)
Mutual labels:  recyclerview
Skeletonlayout
Skeleton view pattern for Android
Stars: ✭ 186 (-11%)
Mutual labels:  recyclerview
Advancedrecyclerview
An easy, empowering Kotlin library for RecyclerView
Stars: ✭ 197 (-5.74%)
Mutual labels:  recyclerview
Placeholderview
This library provides advance views for lists and stacks. Some of the views are build on top of RecyclerView and others are written in their own. Annotations are compiled by annotation processor to generate bind classes. DOCS -->
Stars: ✭ 2,104 (+906.7%)
Mutual labels:  recyclerview
Infinitescroll
Infinite Scroll (Endless Scrolling) for RecyclerView in Android
Stars: ✭ 183 (-12.44%)
Mutual labels:  recyclerview
Moretype
new method to build data in RecyclerView with Kotlin!
Stars: ✭ 189 (-9.57%)
Mutual labels:  recyclerview
Binding
Simple API implement DataBinding and ViewBinding. 简单的 API 实现 DataBinding 和 ViewBinding,欢迎 star
Stars: ✭ 169 (-19.14%)
Mutual labels:  recyclerview
Flap
Flap(灵动),一个基于 RecyclerView 的页面组件化框架。
Stars: ✭ 204 (-2.39%)
Mutual labels:  recyclerview
Sherlockadapter
一个万能的封装了RecyclerView.Adapter的功能库。
Stars: ✭ 186 (-11%)
Mutual labels:  recyclerview
Multiselectadapter
MultiSelectAdapter可以让你的Adapter快速实现多选和批量操作
Stars: ✭ 195 (-6.7%)
Mutual labels:  recyclerview
Sortrecyclerviewlist
Recyclerview实现字母排序,过滤搜索,顶部悬浮,波浪形的侧边栏
Stars: ✭ 179 (-14.35%)
Mutual labels:  recyclerview
Dragdroptworecyclerviews
A code example demonstrating a dragging and dropping from one RecyclerView into another RecyclerView.
Stars: ✭ 181 (-13.4%)
Mutual labels:  recyclerview
Diffadapter
A high-performance , easy-to-use Adapter for RecyclerView ,using diffutil
Stars: ✭ 193 (-7.66%)
Mutual labels:  recyclerview
Snappyrecyclerview
An extension to RecyclerView which will snap to child Views to the specified anchor, START, CENTER or END.
Stars: ✭ 178 (-14.83%)
Mutual labels:  recyclerview
Tabscrollattacher
Attach TabLayout and RecyclerView. Useful for categorizing RecyclerView items.
Stars: ✭ 196 (-6.22%)
Mutual labels:  recyclerview
Customadapter
RV Adapter 优雅封装,抽取列表模版,可以快速的添加一个列表,使用组装的方式构建Adapter,抽象Cell 角色,负责创建ViewHolder,绑定数据和逻辑处理。Cell为一个独立的组件。
Stars: ✭ 172 (-17.7%)
Mutual labels:  recyclerview
Easyadapter
This project demonstrates simple approach for implementation complex lists, based on RecyclerView.
Stars: ✭ 187 (-10.53%)
Mutual labels:  recyclerview
Kohii
Android Video Playback made easy.
Stars: ✭ 204 (-2.39%)
Mutual labels:  recyclerview
Smilerefresh
微笑下拉刷新。这是在 SwipeRefreshLayout基础上修改的下拉刷新库。
Stars: ✭ 203 (-2.87%)
Mutual labels:  recyclerview
Shimmer Recyclerview X
🌀 ShimmerRecyclerViewX for AndroidX
Stars: ✭ 193 (-7.66%)
Mutual labels:  recyclerview

LicenseAdapter

Build Status Android Arsenal Maven Central

LicenseAdapter is an easy-to-use library that provides a RecyclerView adapter to display OSS dependencies and their associated licenses.

Table of contents

Installation

LicenseAdapter is distributed via MavenCentral: Maven Central

dependencies {
  implementation 'net.yslibrary.licenseadapter:licenseadapter:LATEST_LIBRARY_VERSION'
}

Usage

// Create list of libraries
List<Library> libraries = new ArrayList<>();

// Add libraries that are hosted on GitHub with an Apache v2 license.
libraries.add(Licenses.fromGitHubApacheV2("realm/realm-java"));
libraries.add(Licenses.fromGitHubApacheV2("square/retrofit"));

// BSD license
libraries.add(Licenses.fromGitHubBSD("bumptech/glide"));

// MIT license
libraries.add(Licenses.fromGitHubMIT("jhy/jsoup"));

// Library that is hosted on GitHub, but does not provide license text.
libraries.add(Licenses.fromGitHub("gabrielemariotti/changeloglib", Licenses.LICENSE_APACHE_V2));

// Library that is not hosted on GitHub.
libraries.add(Licenses.noContent("Android SDK", "Google Inc.", "https://developer.android.com/sdk/terms.html"));

// Library that does not have their license online
libraries.add(Licenses.noLink("Google Play Services", "Google Inc.", GoogleApiAvailability.getInstance().getOpenSourceSoftwareLicenseInfo(this)));

// These 2 licenses are on a branch name other than master
libraries.add(Licenses.fromGitHubApacheV2("ReactiveX/RxAndroid", "2.x/" + Licenses.FILE_AUTO));
libraries.add(Licenses.fromGitHubApacheV2("ReactiveX/RxJava", "2.x/" + Licenses.FILE_AUTO));

// Create and display the adapter
RecyclerView rv = findViewById(R.id.list);
rv.setLayoutManager(new LinearLayoutManager(this));
rv.setAdapter(new LicenseAdapter(libraries)); // It's that simple!

Don't forget to add the android.permission.INTERNET permission to your manifest.

Predefined license names

License name Field
Apache License 2.0 Licenses#NAME_APACHE_V2
MIT License Licenses#NAME_MIT
BSD License Licenses#NAME_BSD

Predefined license file names

License file name Field
Automatically find the license file from the predefined set below Licenses#FILE_AUTO
LICENSE Licenses#FILE_NO_EXTENSION
LICENSE.txt Licenses#FILE_TXT
LICENSE.md Licenses#FILE_MD

Apps using LicenseAdapter

Send PR if you want your app to be included here ;)

License

Copyright 2016-2017 Shimizu Yasuhiro (yshrsmz)

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].