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
package com.example.pedroj.bluettohsc; | |
import android.content.Context; | |
import android.support.test.InstrumentationRegistry; | |
import android.support.test.runner.AndroidJUnit4; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import static org.junit.Assert.*; | |
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.Collections.Generic; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
namespace DeleteList.ViewModel | |
{ | |
public class BaseViewModel : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; |
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 DeleteList.Model; | |
using System.Collections.ObjectModel; | |
using Xamarin.Forms; | |
namespace DeleteList.ViewModel | |
{ | |
public class MainViewModel : BaseViewModel | |
{ | |
public Command DeletarCommand { get; } | |
public ObservableCollection<Lista> Lista { get; } |
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" | |
xmlns:local="clr-namespace:DeleteList" | |
x:Class="DeleteList.MainPage"> | |
<StackLayout> | |
<ListView ItemsSource="{Binding Lista}" SelectedItem="{Binding ItemSelecionado}"> | |
<ListView.ItemTemplate> |
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 Newtonsoft.Json; | |
using RouteMap.Model; | |
using System; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
namespace RouteMap.Services | |
{ | |
public class DirecaoServico | |
{ |
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.Collections.Generic; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Maps; | |
namespace RouteMap.CustomRender | |
{ | |
public class MapCustomRender : Map | |
{ | |
public static readonly BindableProperty CoordenadasRotaProperty = |
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.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Views; |
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" | |
xmlns:maps="clr-namespace:Xamarin.Forms.Maps;assembly=Xamarin.Forms.Maps" | |
xmlns:CustomMap="clr-namespace:RouteMap.CustomRender;assembly=RouteMap" | |
x:Class="RouteMap.Views.MapaPage"> | |
<ContentPage.Content> | |
<StackLayout Padding="30"> | |
<Entry Placeholder="Origem" Text="{Binding Origem}"/> | |
<Entry Placeholder="Destino" Text="{Binding Destino}"/> |
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 RouteMap.ViewModels; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Maps; | |
using Xamarin.Forms.Xaml; | |
namespace RouteMap.Views | |
{ | |
[XamlCompilation(XamlCompilationOptions.Compile)] | |
public partial class MapaPage : 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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using Xamarin.Forms.Maps; | |
namespace RouteMap.Model | |
{ | |
public class GooglePoints | |
{ | |
public static IEnumerable<Position> Decode(string encodedPoints) |
OlderNewer