xamarin-forms

How do I change the color of a selected item on a ListView?

时光毁灭记忆、已成空白 提交于 2019-11-30 05:16:31
I'm creating a ListView that has some simple items inside a ViewCell. When I select one of the items it becomes orange. When I click and hold (to open the context actions) it becomes white... <ListView ItemsSource="{Binding Items}" HasUnevenRows="True"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.ContextActions> <MenuItem Text="Delete" /> </ViewCell.ContextActions> <StackLayout Orientation="Horizontal" Padding="20"> <StackLayout HorizontalOptions="StartAndExpand"> <Label Text="{Binding Name}" FontSize="Large" FontAttributes="Bold" /> <Label Text="{Binding Description}" /> <

How do I change the color of a selected item on a ListView?

二次信任 提交于 2019-11-29 02:45:43
问题 I'm creating a ListView that has some simple items inside a ViewCell. When I select one of the items it becomes orange. When I click and hold (to open the context actions) it becomes white... <ListView ItemsSource="{Binding Items}" HasUnevenRows="True"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.ContextActions> <MenuItem Text="Delete" /> </ViewCell.ContextActions> <StackLayout Orientation="Horizontal" Padding="20"> <StackLayout HorizontalOptions="StartAndExpand"> <Label Text=

Xamarin Forms Android App Crashes Running Debug with VS Android Emulator

北战南征 提交于 2019-11-27 04:12:55
I have a basic Xamarin Forms app I created. It works fine against the iOS simulator. However when I try and run with a VS Android Emulator (5.1in Marshmallow) it crashes every time upon opening. Even when I try and run without debugging. Below is the error I keep seeing: 01-14 16:22:10.290 D/Mono ( 1366): AOT module 'mscorlib.dll.so' not found: dlopen failed: library "/data/app-lib/App3.Droid-2/libaot-mscorlib.dll.so" not found 01-14 16:22:10.290 D/Mono ( 1366): AOT module '/Users/builder/data/lanes/2512/d3008455/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/mscorlib.dll.so'