This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Pokedex.Services; | |
using Refit; | |
using Xamarin.Forms; | |
namespace Pokedex.View | |
{ | |
public partial class BuscarPokemon : ContentPage | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Pokedex.Services | |
{ | |
public class CaminhoBaseAPI | |
{ | |
public static string BaseUrl => "https://pokeapi.co/api/v2"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Pokedex.Model; | |
using Refit; | |
using Xamarin.Forms; | |
namespace Pokedex.Services | |
{ | |
public interface IPokemonAPI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Newtonsoft.Json; | |
namespace Pokedex.Model | |
{ | |
//model BuscaPokemon | |
public class Pokemon | |
{ | |
[JsonProperty("id")] | |
public long Id { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using Xamarin.Forms; | |
namespace MyGarden.Controls | |
{ | |
public class XEntry : Entry | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |