##You can customize the color
Download here
##Download library
- Using Gradle
compile 'com.github.javierugarte:githubcontributionsview:1.0.1'
- Using Maven
<dependency>
<groupId>com.github.javierugarte</groupId>
<artifactId>githubcontributionsview</artifactId>
<version>1.0.1</version>
<type>pom</type>
</dependency>
- xml
<com.github.javierugarte.GitHubContributionsView
android:id="@+id/github_contributions_view"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
- java
GitHubContributionsView contributionView = (GitHubContributionsView)
findViewById(R.id.github_contributions_view);
contributionView.loadUserName("javierugarte");
By default, the base color is #d6e685 (the first image) and no display the months. You can change this properties.
contributionView.setBaseColor("#FF8A80");
contributionView.displayMonth(true);
####Javier González - jugarte.es
Copyright 2016 Javier González
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.