Skip to content

Instantly share code, notes, and snippets.

💭
Faça o que puder, com o que tiver, onde estiver

Filipe Bezerra filipebezerra

💭
Faça o que puder, com o que tiver, onde estiver
Block or report user

Report or block filipebezerra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@filipebezerra
filipebezerra / README.md
Created Jun 3, 2019 — 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:

View ViewUtils.java
import android.os.Build;
import android.support.v4.view.ViewCompat;
import android.view.View;
import android.view.ViewTreeObserver;
/**
* @author Filipe Bezerra
*/
public class ViewUtils {
View Android Color Control Cheat Sheet
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21.
To use the support version of these attributes, remove the android namespace.
For instance, "android:colorControlNormal" becomes "colorControlNormal".
These attributes will be propagated to their corresponding attributes within the android namespace
for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
-----------
@filipebezerra
filipebezerra / NotificationController.cs
Last active Jun 20, 2017
Csharp classes demonstrating how to send push notifications to a specific registration using tag expressions in Azure Mobile Apps
View NotificationController.cs
using System.Linq;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.OData;
using System.Web.Http.Tracing;
using Microsoft.Azure.Mobile.Server;
using App.Models;
using App.Notification;
@filipebezerra
filipebezerra / ParcelableUtils.java
Created Nov 9, 2015 — forked from keyboardr/ParcelableUtils.java
Utility class for dealing with Parcelables. Handles null checks for objects, and parcels some common non-Parcelable classes
View ParcelableUtils.java
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.os.Parcel;
import android.os.Parcelable;
You can’t perform that action at this time.