<?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="BatteryApp.MainPage">
  
    <StackLayout Padding="22, 20, 0, 0" >

        <Label Text="Battery Information" WidthRequest="18" HorizontalTextAlignment="Center" FontSize="Micro" TextColor="BurlyWood" />

        <StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
            <Button x:Name="buttonPercentage" Text="Percentage" FontSize="6"  BackgroundColor="LightGray" TextColor="Black" WidthRequest="160"
               BorderRadius="0" Clicked="Onbuttonpercent" />
            <Label x:Name="textPercentage" BackgroundColor="Black" TextColor="White" VerticalTextAlignment="Center" FontSize="6"></Label>
        </StackLayout>

        <StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
            <Button x:Name="buttonLevel" Text="Battery Level" FontSize="6"  BackgroundColor="LightGray" TextColor="Black" WidthRequest="160"
               BorderRadius="0" Clicked="Onbuttonlevel" />
            <Label x:Name="textLevel" BackgroundColor="Black" TextColor="White" VerticalTextAlignment="Center" FontSize="6" ></Label>
        </StackLayout>


        <StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand">
            <Button x:Name="buttonStatus" Text="Battery Status" FontSize="6" BackgroundColor="LightGray" TextColor="Black"  WidthRequest="160"
               BorderRadius="0" Clicked="Onbuttonstatus" />
            <Label x:Name="textStatus" BackgroundColor="Black" TextColor="White" VerticalTextAlignment="Center"  FontSize="6"></Label>
        </StackLayout>
        <Button Text="Reset" FontSize="6" StyleClass="Link" Clicked="Onreset" BackgroundColor="Black" TextColor="Gray"></Button>
        
    </StackLayout>
</ContentPage>