Skip to content

Instantly share code, notes, and snippets.

View marcoscgdev's full-sized avatar
👋
Hi there!

Marcos Calvo García marcoscgdev

👋
Hi there!
View GitHub Profile
@marcoscgdev
marcoscgdev / README.md
Created February 10, 2018 18:26 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

@marcoscgdev
marcoscgdev / AsyncTaskExample.java
Last active July 22, 2019 18:33
An easy example of background network request in Android using AsyncTask.
package com.marcoscg.sportstv.utils;
import android.os.AsyncTask;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;