xamarin.android

Severity Code Description Project File Line Suppression State Error (downloading from Nuget for Xamarin)

余生颓废 提交于 2019-12-31 06:23:26
问题 I am having this error on my VS when I am trying to download some versions of xamarin.android.support (v24 and up) from nugget package manager Severity Code Description Project File Line Suppression State Error Could not install package 'Xamarin.Android.Support.v7.RecyclerView 26.1.0.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v7.1' How can I solve this? I'm sorry but I don't have any idea about MonoAndroid. I already tried to update may xamarin

Xamarin.Forms: How to access the collection used in ListView.ItemTemplate within ListView.GroupHeaderTemplate?

江枫思渺然 提交于 2019-12-31 06:22:12
问题 I need to access the OnOff property in a Switch within the ListView.GroupHeaderTemplate this property is in the collection used by ListView.ItemTemplate, I have tried in many ways without success, has anyone ever had this problem? > <ListView ItemsSource="{Binding ItemsGrouped}" GroupShortNameBinding="{Binding Key}" IsGroupingEnabled="true" GroupDisplayBinding="{Binding Key}" x:Name="ListViewAllDevices"> <ListView.ItemTemplate> <DataTemplate> <ViewCell.View> <StackLayout> <Label Text="

How to set visibility for ProgressBar in android MvvmCross Xamarin

心已入冬 提交于 2019-12-31 06:12:11
问题 I am trying to set visibility for ProgressBar as GONE . In XML <?xml version="1.0" encoding="utf-8"?> <ProgressBar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:layout_width="wrap_content" android:layout_height="wrap_content" local:MvxBind="Visibility Visibility(ProgressVisibility)" android:background="@drawable/sel_custom_progress" /> In ViewModel private bool _progressVisibility; public bool ProgressVisibility { get

load the entire ListView in background and get an UIControl inside each ListItem

℡╲_俬逩灬. 提交于 2019-12-31 05:14:13
问题 I need to load a ListView entirely and get an UIControl inside each ListItem even if the item view is not displayed on the screen. I tried the ChildViewAdded event, but it is raised only when the ListItem is displayed on the screen. So, I need a way to prepare my UI ListView programmatically before displaying it. Thanks in advance for your help. 回答1: Quick answer - if you need a real View for each item in your list then you don't want to use a virtualized control like a ListView. Instead you

Android Scaling & Density Issues

霸气de小男生 提交于 2019-12-31 04:52:08
问题 Update: Some research has turned up that the Asus Transformer TF700T (high end) should have a pixel density of about 224, so the values of 159 android is reporting are either erroneous, or have been modified somehow (the lcd-density key in /system/build.prop), which I can't find for some reason. I have two near identical tablets I'm developing on, both ASUS Transformer's, and both 10.1". The higher end model has the following specs (where dm = ApplicationContext.Resources.DisplayMetrics): dm

Load Xamarin Forms page from android notification

╄→гoц情女王★ 提交于 2019-12-31 03:56:10
问题 I am trying to load a Xamarin Forms page from an Android Notification. I am really lost on the android side of this, and most of my code has been pieced together from tutorials and blog posts. However nothing really seems to cover exactly this scenario. I have implemented a very simple interface with dependency service to create the notification with an intent... [assembly: Xamarin.Forms.Dependency(typeof(QuoteNotification))] namespace QuoteApp.Droid { class QuoteNotification :

Monodroid GREF problem best practice?

巧了我就是萌 提交于 2019-12-31 03:51:09
问题 I have the following test code (based on standard monodroid HelloWorld) namespace TestGREF { [Activity (Label = "TestGREF", MainLauncher = true)] public class Activity1 : Activity { int count = 1; protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.Main); Button button = FindViewById<Button> (Resource.Id.myButton); button.Click += delegate { button.Text = string.Format ("{0} clicks!", count++); for(int i=0;i<10000;i++){ new Java.Lang

Hundreds of Resource.Designer.cs build errors on latest Xamarin Forms 2.2.0.45

Deadly 提交于 2019-12-31 03:33:19
问题 I have a new Xamarin Forms solution setup with a PCL, an iOS app (which builds fine), and an Android project. The Android project is up to date with the latest Nuget packages for Xamarin Forms (2.2.0.45) to match the PCL project. However when I build the project I'm getting over 500 errors in the Resource.Designer.cs file. I've tried all the suggestions that I've found online, such as deleting the file and having it regenerated during the Build. Checking the .csproj file for the tag and it's

MvxRecyclerView Fluent API binding

微笑、不失礼 提交于 2019-12-31 02:45:09
问题 I am unable to bind ItemClick from MvxRecyclerView (or its Adapter) to a command on my ViewModel using Fluent API. It works if I put both ItemsSource and ItemClick in the XML so I am not interested in such solution. I used this post as an excellent guideline (How to use the MvvmCross fluent API to bind a RecyclerView item's TextView to a property of its ViewModel on Android?) and all of that works except that I am unable to bind ItemClick on MvxRecyclerView (or the adapter) to a MainViewModel

Is it possible to embed xamarin part into an existing native app?

喜夏-厌秋 提交于 2019-12-30 22:27:26
问题 I have existing iOS and Android native apps. Is it possible to extend the apps with Xamarin coded part ? 回答1: Both Xamarin.iOS and Xamarin.Android are currently setup to take control of your application, so you need to make your main program be written in C# and then call into the existing code. The way that you would do this is to bind your existing Objective-C or Java code as C# libraries, and then consume those libraries from C#. The binding technology is precisely what drives both the