Skip to content

Instantly share code, notes, and snippets.

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

Eduardo Reis EduardoReisDev

🏠
Working from home
View GitHub Profile
using System;
using System.Collections.Generic;
using Pokedex.Services;
using Refit;
using Xamarin.Forms;
namespace Pokedex.View
{
public partial class BuscarPokemon : ContentPage
{
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Pokedex.View.BuscarPokemon"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" ios:Page.UseSafeArea="true"
BackgroundColor="#C32D2F"
NavigationPage.HasNavigationBar="False">
<ScrollView>
using System;
namespace Pokedex.Services
{
public class CaminhoBaseAPI
{
public static string BaseUrl => "https://pokeapi.co/api/v2";
}
}
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Pokedex.Model;
using Refit;
using Xamarin.Forms;
namespace Pokedex.Services
{
public interface IPokemonAPI
using System;
using Newtonsoft.Json;
namespace Pokedex.Model
{
//model BuscaPokemon
public class Pokemon
{
[JsonProperty("id")]
public long Id { get; set; }
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Controls="clr-namespace:MyGarden.Controls"
mc:Ignorable="d"
x:Class="MyGarden.Paginas.Home"
NavigationPage.HasNavigationBar="False">
<ContentPage.Content>
<Frame Padding="0" CornerRadius="10" BackgroundColor="#d5d5d8" Margin="10, 5,10,20">
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
namespace MyGarden.Controls
{
public class XEntry : Entry
{
@EduardoReisDev
EduardoReisDev / XEntryRenderer.cs
Created November 10, 2020 00:27
Entry personalizado Xamarin.
using Xamarin.Forms;
using MyGarden.Controls;
using XamarinBorderlessEntry.Droid.ControlHelpers;
using Xamarin.Forms.Platform.Android;
using Android.Graphics.Drawables;
[assembly: ExportRenderer(typeof(XEntry), typeof(XEntryRenderer))]
namespace XamarinBorderlessEntry.Droid.ControlHelpers
{
public class XEntryRenderer : EntryRenderer