xamarin.android

MonoDroid - setting background color from colors.xml throws InvalidOperationException

与世无争的帅哥 提交于 2019-12-11 03:58:26
问题 I have a simple layout as follows: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/widget30" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/translucent_red" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"> My colors.xml file is as follows: <?xml version="1.0" encoding="utf-8"?> <resources> <color name="opaque_red">#f00</color> <color name="translucent_red">#80ff0000</color> <

Xamarin: Couldn't find “libmonodroid.so” emulator error

强颜欢笑 提交于 2019-12-11 03:52:21
问题 I've been getting this problem for a couple days and haven't found a solution yet. I've been using an Android 7.0 ARM (armeabi-v7a) image for my emulator. Because it's so painfully slow, I've been trying to use Android 7.0 Intel Atom (x86_64) with HAXM but I get the following error when opening the app. AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/SiteToolsMobile. Droid-1/base.apk"],nativeLibraryDirectories=[/data/app

MvvmCross 3.0.14 - MvxListView selection not working in Android

拈花ヽ惹草 提交于 2019-12-11 03:46:33
问题 I have updated the MvvmCross library from 3.0.12 to 3.0.14 and the items selection stopped working for MvxListViews. I've created a simple example from the first demo application to display this. The project contains two solutions with the same code but different versions of the MvvmCross Library. 3.0.12 version works well (selected items keeps checked) 3.0.14 version breaks the behavior Do i have to change something in my code or is it a bug of the Framework? I am using API Level 12 for the

Android: Getting the View added with LayoutInflator

寵の児 提交于 2019-12-11 03:45:37
问题 Java or C# answers are fine (we use MonoDroid) I successfully add a control to a LinearLayout with: LayoutInflater _inflatorservice = (LayoutInflater)this.GetSystemService(Context.LayoutInflaterService); var viewContainer = _inflatorservice.Inflate(Resource.Layout.ReportItImageButton, myLinearLayout); How do I then get a reference to the view just added? I add many of the same control this way so would need to get the nth item added to the layout. 回答1: This works, it gets the most recent item

LinkAssemblies task failed

假装没事ソ 提交于 2019-12-11 03:38:00
问题 Severity Code Description Project File Line Suppression State Error The "LinkAssemblies" task failed unexpectedly. Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Android.Widget.TextView::SetTextAppearance(System.Int32)' (defined in 'Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono

Brand new Xamarin.Forms project: The file “obj\Debug\android\bin\packaged_resources” does not exist

谁说我不能喝 提交于 2019-12-11 03:33:48
问题 I just installed Visual Studio 2017 and I'm trying to work on a Xamarin.Forms project. I cloned the existing repo and could build and deploy the iOS app just fine, but when I try to build the Android app it throws the following error: Severity Code Description Project File Line Suppression State Error The file "obj\Debug\android\bin\packaged_resources" does not exist. [Solution Name].Android C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android\Xamarin.Android

Xamarin MonoAndroid Azure mobile service InsertAsync

允我心安 提交于 2019-12-11 03:30:08
问题 I'm using Xamarin for Android and have added the azure mobile services componenet. I'm trying to create the todo list application like (https://github.com/xamarin/azure-mobile-services) I connect to the mobile service like this: public static string mobileServiceUrl = "http://MyMoblieService.azure-mobile.net/.azure-mobile.net/"; public static string mobileServiceAppKey = "MyAppKey"; private static readonly MobileServiceClient MobileService = new MobileServiceClient(mobileServiceUrl,

How to handle Back Button to remove current fragment In MvvmCross

試著忘記壹切 提交于 2019-12-11 03:28:59
问题 My MainMenu is the first launched activity or page which will show the MainPage as the Fragment in this MainMenu, a) it has a Left Drawer. When user click on an item in the drawer, it will be displayed as fragment. In this MainPage, b) it has dropdown menu in Action-Bar. when user click an item in the menu it will be displayed as fragment The Problem: 1) User click an item in MainPage(b) :Action_bar dropdown menu, how to remove or not to show this current display fragment WHEN user click the

ParseInstallation.SaveAsync() causing UnhandledException on Xamarin forms Android

拜拜、爱过 提交于 2019-12-11 03:13:52
问题 I'm writing an Xamarin forms android application and implementing push notifications for the same. I am getting below mentioned stack-trace while calling ParseInstallation.SaveAsync() method in Android: [MonoDroid] UNHANDLED EXCEPTION: [MonoDroid] System.AggregateException: One or more errors occurred. ---> System.FormatException: String was not recognized as a valid DateTime. [MonoDroid] at System.DateTimeParse.ParseExact (System.String s, System.String format, System.Globalization

How to create Tabs using Android Xamarin with MvvmCross MvxTabsFragmentActivity

给你一囗甜甜゛ 提交于 2019-12-11 03:12:53
问题 I'm trying to implement a tabs control of ViewPager inside the android project of a MVVMCross xamarin solution. The binding is working in the windows phone app so i assume the Viewmodel is working. I have an activity that inherits MvxTabsFragmentActivity that i want to add Tabs into. My app can not detect the id : Resource.Id.actualtabcontent. This is how i Attempted it, (https://github.com/Cheesebaron/Cheesebaron.MvvmCross.Bindings/blob/master/Bindings.Droid/BindableViewPager.cs) as well as