Skip to content

JonathanMoreno14/AndroidGitHubAPISampleApp

Repository files navigation

AndroidGitHubAPI

The sample application uses Volley to parse JSON data from Github and display the content via RecyclerView

Displays the following:

Name: repository name

Description: repository description

Language: programming language used

Updated: updated repository

Updated repository

  • API level
  • Gradle
  • Dependencies
  • Design
  • RecyclerView
Before After
andriod_github_api_screencast ezgif com-resize 19

Dependencies

implementation 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'

Permissions

 <uses-permission android:name="android.permission.INTERNET" />
 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Android Manifest

android:screenOrientation="portrait"

Styles

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

<!--Details Activity-->
<style name="DetailsTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="colorControlNormal">@android:color/white</item>
</style>

Color

  <color name="colorPrimary">#444455</color>
  <color name="colorPrimaryDark">#222233</color>
  <color name="colorAccent">#FF4081</color>

  <!--Color Scheme Design-->
  <color name="backgroundColor">#777788</color>
  <color name="colorText">#778888</color>

Github API

https://api.github.com/users/username/repos

About

Sample Android application using GitHub's API to list my public repositories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages