Skip to content

Commit

Permalink
Sample app updated
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Oct 10, 2018
1 parent 2e5d25c commit fae89a6
Show file tree
Hide file tree
Showing 14 changed files with 267 additions and 239 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

[![Build status](https://ci.appveyor.com/api/projects/status/st6lcbts9bkhxqub?svg=true)](https://ci.appveyor.com/project/enisn/xamarin-forms-inputkit)
[![CodeFactor](https://www.codefactor.io/repository/github/enisn/xamarin.forms.inputkit/badge)](https://www.codefactor.io/repository/github/enisn/xamarin.forms.inputkit)
<a href="https://www.nuget.org/packages/Xamarin.Forms.InputKit/"><img src="https://img.shields.io/badge/Nuget-2.3.3-blue.svg" /></a>
<a href="https://www.nuget.org/packages/Xamarin.Forms.InputKit/"><img src="https://img.shields.io/badge/Nuget-2.3.4-blue.svg" /></a>
<a href="https://github.com/enisn/Xamarin.Forms.InputKit/wiki"> <img src="https://img.shields.io/badge/Visit-WiKi-orange.svg"/></a>
<hr/>
<p>
Expand Down
453 changes: 228 additions & 225 deletions Sample.InputKit/Sample.InputKit.Android/Resources/Resource.designer.cs

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0"><path android:fillColor="#FF000000" android:pathData="M4,10v7h3v-7L4,10zM10,10v7h3v-7h-3zM2,22h19v-3L2,19v3zM16,10v7h3v-7h-3zM11.5,1L2,6v2h19L21,6l-9.5,-5z" /></vector>
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,19 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\drawable-xxxhdpi\" />
<AndroidResource Include="Resources\drawable\ic_account_balance_black.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-hdpi\ic_account_balance_black.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xhdpi\ic_account_balance_black.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxhdpi\ic_account_balance_black.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable-xxxhdpi\ic_account_balance_black.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,13 @@
<Name>Sample.InputKit</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\ic_account_balance_black.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\ic_account_balance_black%402x.png" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="Resources\ic_account_balance_black%403x.png" />
</ItemGroup>
</Project>
22 changes: 10 additions & 12 deletions Sample.InputKit/Sample.InputKit/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,37 @@
<StackLayout Spacing="12" Padding="20">

<input:CheckBox Text="Option 0" />
<input:CheckBox Text="Option 1" Type="Box"/>
<input:CheckBox Text="Option 2" Type="Check"/>
<input:CheckBox Text="Option 3" Type="Cross"/>
<input:CheckBox Text="Option 4" Type="Star"/>

<input:CheckBox Text="Option 1" IsChecked="True" Type="Box"/>
<input:CheckBox Text="Option 2" IsChecked="True" Type="Check"/>
<input:CheckBox Text="Option 3" IsChecked="True" Type="Cross"/>
<input:CheckBox Text="Option 4" IsChecked="True" Type="Star"/>
<input:CheckBox Text="Option 5" IsChecked="True" Type="Material"/>

<input:RadioButtonGroupView>
<input:RadioButton Text="Option 1" CircleSize="75" FontSize="24" IsChecked="{Binding IsCheckedRB,Mode=TwoWay}" />
<input:RadioButton Text="Option 2" FontSize="24" />
<input:RadioButton Text="Option 1" CircleSize="75" TextFontSize="24" IsChecked="{Binding IsCheckedRB,Mode=TwoWay}" />
<input:RadioButton Text="Option 2" TextFontSize="24" />
<input:RadioButton Text="Option 3" />
<input:RadioButton Text="Dolor ullamcorper sit justo magna luptatum at sit dolor sed accusam amet quod nostrud lobortis amet dolore et zzril et" />
<input:RadioButton Text="Option 4" />
</input:RadioButtonGroupView>

<input:Dropdown Title="Chosse an option below:"
TitleColor="Black"
Color="Green"
ValidationMessage="This field is required"
AnnotationColor="Accent"
IsRequired="True"
BorderColor="Black"
Color="BlueViolet"
IconImage="ic_account_balance_black"
IsEditable="True"
Placeholder="Choose one"
ItemsSource="{Binding MyList}"
SelectedItem="{Binding SelectedItem}"
/>




<input:AdvancedSlider MaxValue="5000" MinValue="50" StepValue="50" Value="{Binding Price}" ValuePrefix="Price:" ValueSuffix="" Title="Choose Budget:"/>

<input:SelectionView ColumnNumber="1" SelectionType="RadioButton" ItemDisplayBinding="{Binding Id}" ItemsSource="{Binding MyList}" />
<input:SelectionView ColumnNumber="1" SelectionType="Button" ItemDisplayBinding="{Binding Id}" ItemsSource="{Binding MyList}" />



Expand Down
5 changes: 5 additions & 0 deletions Sample.InputKit/Sample.InputKit/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@ private void AdvancedEntry_TextChanged(object sender, TextChangedEventArgs e)
{
System.Diagnostics.Debug.WriteLine(e.NewTextValue);
}

private void Button_Clicked(object sender, EventArgs e)
{
advEntry.Reset();
}
}
}

0 comments on commit fae89a6

Please sign in to comment.