Skip to content

Instantly share code, notes, and snippets.

View griajobag's full-sized avatar
🏠
Working from home

Putu Guna griajobag

🏠
Working from home
View GitHub Profile
@griajobag
griajobag / strings.xml
Created June 29, 2016 09:52
smooth progressbar
<resources>
<string name="app_name">SmoothProgressBar</string>
<string-array name="interpolators">
<item>Accelerate</item>
<item>Linear</item>
<item>AccelerateDecelerate</item>
<item>Decelerate</item>
<item>FastOutSlowIn</item>
</string-array>
@griajobag
griajobag / colors.xml
Created June 29, 2016 09:54
smooth progressbar
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<integer-array name="colors">
<item>@color/holo_blue_dark</item>
<item>@color/holo_yellow_dark</item>
<item>@color/holo_green_dark</item>
@griajobag
griajobag / activity_main.xml
Created June 29, 2016 09:55
smooth progressbar
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:padding="10dp"
android:layout_height="match_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
@griajobag
griajobag / MainActivity.java
Created June 29, 2016 09:57
smooth progressbar
package com.example.putuguna.smoothprogressbar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AccelerateInterpolator;
import android.widget.ProgressBar;
import fr.castorflex.android.smoothprogressbar.SmoothProgressBar;
import fr.castorflex.android.smoothprogressbar.SmoothProgressBarUtils;
@griajobag
griajobag / build.gradle(App)
Created June 30, 2016 03:32
firebase notif
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.putuguna.firebasenotif"
minSdkVersion 15
targetSdkVersion 23
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.google.gms:google-services:3.0.0' //tambahkan bagian ini
@griajobag
griajobag / style.xml
Created June 30, 2016 03:39
firebase notif
<resources>
<!-- 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>
@griajobag
griajobag / strings.xml
Created June 30, 2016 03:40
firebase notif
<resources>
<string name="app_name">FirebaseNotif</string>
<string name="quickstart_message">Click the SUBSCRIBE TO NEWS button below to subscribe to the
news topic. Messages sent to the news topic will be received. The LOG TOKEN button logs the
InstanceID token to logcat.</string>
<string name="subscribe_to_news">Subscribe To News</string>
<string name="log_token">Log Token</string>
</resources>
@griajobag
griajobag / dimens.xml
Created June 30, 2016 03:41
firebase notif
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="standard_field_width">200dp</dimen>
</resources>
@griajobag
griajobag / colors.xml
Created June 30, 2016 03:43
firebase notif
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="blue_grey_500">#607D8B</color>
<color name="blue_grey_600">#546E7A</color>
<color name="blue_grey_700">#455A64</color>
<color name="blue_grey_800">#37474F</color>