Skip to content

Instantly share code, notes, and snippets.

View graco911's full-sized avatar
:octocat:
Android Developer

Carlos Graniel Córdova graco911

:octocat:
Android Developer
  • Protec
  • México
View GitHub Profile
To Use FontAwesome
1. Download Free FontAwesome fonts from website, grab the "Web" fonts. URL:https://fontawesome.com/download
2. Unzip and copy the font file into both Android and IOS projects. Verify build action.
a. For IOS add entry to info.plist at bottom before </dict> element.
<key>UIAppFonts</key>
<array>
<string>fa-solid-900.ttf</string>
</array>
@graco911
graco911 / bprop.snippet
Created January 17, 2020 03:44 — forked from parth7676/bprop.snippet
Bindable Property Snippet for Xamarin Forms.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>bprop</Title>
<Author>Microsoft Corporation</Author>
<Description>Code snippet for an automatically implemented $name$Property
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@graco911
graco911 / RijndaelSimple.cs
Last active April 16, 2019 00:53
ClaseEncriptador
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace CryptoUtil
{
public abstract class RijndaelSimple
{
static internal string passbase = "s@lAvz";
@graco911
graco911 / layout.xml
Created January 31, 2019 00:02 — forked from isfaaghyth/layout.xml
AppBar Scrolling with Flexible Space and content overlapping
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical">
@graco911
graco911 / SendNotification.cs
Created May 25, 2018 19:10
FirebaseSendNotification
using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Services
{
public partial class Firebase
{
@graco911
graco911 / getBitmapDescriptor.cs
Created March 3, 2018 18:33
VectorDrawableToBitMapDescriptor
public static BitmapDescriptor getBitmapDescriptor(int id, Context context)
{
if (Build.VERSION.SdkInt >= Build.VERSION_CODES.Lollipop)
{
VectorDrawable vectorDrawable = (VectorDrawable)ContextCompat.GetDrawable(context, id);
int h = vectorDrawable.IntrinsicHeight;
int w = vectorDrawable.IntrinsicWidth;
vectorDrawable.Bounds = new Rect(0, 0, w, h);
@graco911
graco911 / .cs
Created January 24, 2018 21:28
Firebase RegisteredForRemoteNotifications iOS
public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
// Get current device token
var DeviceToken = deviceToken.Description;
if (!string.IsNullOrWhiteSpace(DeviceToken))
{
DeviceToken = DeviceToken.Trim('<').Trim('>');
CrossFirebasePushNotification.Current.Subscribe("Ecopulse_news");
CrossFirebasePushNotification.Current.Subscribe("Ecopulse_ios");
<!--Ecopulse Color Theme-->
<color name="background_color_gradiente_superior">#FF6A3C</color>
<color name="background_color_gradiente_inferior">#F95344</color>
<color name="formulario_input_color">#FFFFFF</color>
<color name="formulario_default_text_color">#CCCCCC</color>
<color name="formulario_text_color">#303030</color>
<color name="button_background_color_off">#F45131</color>
<color name="button_background_color_on">#F45131</color>
<color name="button_text_color">#FFFFFF</color>
<color name="olvidaste_tu_constraseña">#FFFFFF</color>
@graco911
graco911 / gist:a3f44c8b3b1d1a0dedcc8a4bed272418
Created January 11, 2018 23:34
Color for Android Resources
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<color name="red_50">#FFEBEE</color>
<color name="red_100">#FFCDD2</color>
<color name="red_200">#EF9A9A</color>
<color name="red_300">#E57373</color>
<color name="red_400">#EF5350</color>
<color name="red_500">#F44336</color>
<color name="red_600">#E53935</color>
<color name="red_700">#D32F2F</color>