This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.gabilheri.fithub.ui.views.charts; | |
| import android.graphics.Canvas; | |
| import android.graphics.LinearGradient; | |
| import android.graphics.Path; | |
| import android.graphics.Shader; | |
| import com.gabilheri.fithub.helpers.ColorUtils; | |
| import com.github.mikephil.charting.animation.ChartAnimator; | |
| import com.github.mikephil.charting.buffer.BarBuffer; | |
| import com.github.mikephil.charting.interfaces.dataprovider.BarDataProvider; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.gabilheri.fithub.ui.linking; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.content.IntentSender; | |
| import android.os.Bundle; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import com.google.android.gms.common.ConnectionResult; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CircularProgressBar extends View { | |
| private static final int DEFAULT_ANIMATION = 1500; | |
| // Properties | |
| private float progress = 0; | |
| private float strokeWidth = getResources().getDimension(R.dimen.default_stroke_width); | |
| private float backgroundStrokeWidth = getResources().getDimension(R.dimen.default_background_stroke_width); | |
| private boolean isRounded = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package okstate.edu.canopeo.helpers; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.Manifest; | |
| import android.app.Service; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.pm.PackageManager; | |
| import android.location.Location; | |
| import android.location.LocationListener; | |
| import android.location.LocationManager; | |
| import android.os.Bundle; | |
| import android.os.IBinder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface BangAnimationListener { | |
| /** | |
| * <p>Notifies the start of the animation.</p> | |
| */ | |
| void onAnimationStart(); | |
| /** | |
| * <p>Notifies the end of the animation. </p> | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| String pictureUrl = extras.getString(Const.EXTRA_IMAGE); | |
| // We still need to Load the image | |
| loadImage(pictureUrl); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void initRandomAnimals(int size) { | |
| mAnimalList = new ArrayList<>(); | |
| for(int i = 0; i < size; i++) { | |
| Animal a = new Animal( | |
| animalNames[i % animalNames.length], | |
| animalImages[i % animalImages.length]); | |
| mAnimalList.add(a); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 100% — FF | |
| 95% — F2 | |
| 90% — E6 | |
| 85% — D9 | |
| 80% — CC | |
| 75% — BF | |
| 70% — B3 | |
| 65% — A6 | |
| 60% — 99 | |
| 55% — 8C |