GithubContributionsView
A library to show the map of contributions (Github)
Install / Use
/learn @javierugarte/GithubContributionsViewREADME
GithubContributionsView
<img src="https://raw.githubusercontent.com/javierugarte/GithubContributionsView/master/resources/images/github.png" width="600">You can customize the color
<img src="https://raw.githubusercontent.com/javierugarte/GithubContributionsView/master/resources/images/red.png" width="500"> <img src="https://raw.githubusercontent.com/javierugarte/GithubContributionsView/master/resources/images/blue.png" width="500"> <img src="https://raw.githubusercontent.com/javierugarte/GithubContributionsView/master/resources/images/blue_gray.png" width="500"> <img src="https://raw.githubusercontent.com/javierugarte/GithubContributionsView/master/resources/images/green.png" width="500"> <img src="https://raw.githubusercontent.com/javierugarte/GithubContributionsView/master/resources/images/pink.png" width="500">Download sample
Download here
Download library
- Using Gradle
compile 'com.github.javierugarte:githubcontributionsview:1.2.2'
- Using Maven
<dependency>
<groupId>com.github.javierugarte</groupId>
<artifactId>githubcontributionsview</artifactId>
<version>1.2.2</version>
<type>pom</type>
</dependency>
How to use this library
- java
GitHubContributionsView contributionView = (GitHubContributionsView)
findViewById(R.id.github_contributions_view);
contributionView.loadUserName("javierugarte");
- customize programatically
contributionsView.setBaseColor(R.color.colorAccent);
contributionsView.setBaseEmptyColor("#EEEEEE");
contributionsView.setBackgroundBaseColor(Color.TRANSPARENT);
contributionsView.setLastWeeks(50);
contributionsView.displayMonth(true);
contributionsView.setTextColor(R.color.colorPrimary);
- xml
<com.github.javierugarte.GitHubContributionsView
android:id="@+id/github_contributions_view_attrs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
app:baseColor="@color/colorAccent"
app:baseEmptyColor="#0FFF4081"
app:displayMonth="true"
app:textColor="@color/colorPrimary"
app:username="javierugarte" />
- attrs table
| Attr name | Attr format | Example | |---|---|---| | baseColor | color | #D6E685 | | backgroundBaseColor | color | #FFFFFF | | baseEmptyColor | color | #EEEEEE | | displayMonth | boolean | true / false | | textColor | color | #000000 | | lastWeeks | integer | 50 | | username | string | javierugarte |
Contribute
Apps using this library
Want to be here? Open an issue or make a pull request.
Contributors
About me
Javier González - jugarte.es
License
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.
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
