Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Marcos Calvo García marcoscgdev

🏠
Working from home
View GitHub Profile
@marcoscgdev
marcoscgdev / AsyncTaskExample.java
Last active Jul 22, 2019
An easy example of background network request in Android using AsyncTask.
View AsyncTaskExample.java
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;
@marcoscgdev
marcoscgdev / README.md
Created Feb 10, 2018 — forked from lopspower/README.md
Hexadecimal color code for transparency
View README.md

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: