xamarin.android

Visual Studio Android Emulator won't run application

帅比萌擦擦* 提交于 2020-01-02 01:13:13
问题 I recently got into Xamarin development. I have a lot of experience in Xcode making iOS apps and the iOS side was very straight forward. Now I'm trying to implement Android. I downloaded a Hello World example to get my bearings. When I run it I have no problems getting the simulator to show up ( MonoForAndroid_API_10 and MonoForAndroid_API_12 ) but the actual application doesn't run, and does not show up anywhere on the simulator. Essentially whenever I use run or run with in Xamarin on

How to Get Value from Firebase in Xamarin?

拟墨画扇 提交于 2020-01-01 19:35:15
问题 How to Get Data from Firebase Realtime Database using Xamarin Firebase.Database Android, as there is no documentation available and I am new user. public void GetSubjects() { Database.Reference.Child("childName").Ref.AddListenerForSingleValueEvent(new ValueEventListener()); } public class ValueEventListener : Java.Lang.Object, Firebase.Database.IValueEventListener { public void OnCancelled( DatabaseError error ) { throw new NotImplementedException(); } public void OnDataChange( DataSnapshot

How can I get PixlUI for Android custom fonts working?

别说谁变了你拦得住时间么 提交于 2020-01-01 19:34:35
问题 I am trying to use PixlUI to implement custom fonts into my Android app using Xamarin. I've followed these steps: Added a new Android Java Bindings Library to my main solution Added pixlui-1-0-5.jar to the jars folder Under properties for pixlui-1-0-5.jar i've set the "include in deploy" to true Tested my new Android Java Bindings Library and it builds fine without errors Under the main project i've added my font to the assets/fonts folder Under references i've added the pixlUI binding

Loading Icon for layout screen Xamarin android

為{幸葍}努か 提交于 2020-01-01 19:33:09
问题 I want to find out if there is any good ideas/tutorials on how to add loading gif to an android layout when processing happens and when a page layout navigates to another page layout. I have tried using this - AndHud But it seems like it doesn't work well with Portal Class Librarys (PCL) and services inside the PCL. I couldn't find a lot of examples with this component. I see android uses a progress dialog for this but I was hoping for a Xamarin version in C# or any other clever way of doing

How to bind *.AAR file in Xamarin with Visual Studio/Xamarin Studio

拈花ヽ惹草 提交于 2020-01-01 14:41:50
问题 I want to bind HoloEverywhere in Xamarin. The HoloEverywhere binary is a .aar file. It seems that if I mark it as InputJar, nothing happens in the Java Library binding project. So is there a way to make it work? 回答1: To bind to an .aar , the build action must be LibraryProjectZip . http://docs.xamarin.com/releases/android/xamarin.android_4/xamarin.android_4.7/#Xamarin.Android_4.7.10. 来源: https://stackoverflow.com/questions/23318859/how-to-bind-aar-file-in-xamarin-with-visual-studio-xamarin

How to bind *.AAR file in Xamarin with Visual Studio/Xamarin Studio

假装没事ソ 提交于 2020-01-01 14:40:12
问题 I want to bind HoloEverywhere in Xamarin. The HoloEverywhere binary is a .aar file. It seems that if I mark it as InputJar, nothing happens in the Java Library binding project. So is there a way to make it work? 回答1: To bind to an .aar , the build action must be LibraryProjectZip . http://docs.xamarin.com/releases/android/xamarin.android_4/xamarin.android_4.7/#Xamarin.Android_4.7.10. 来源: https://stackoverflow.com/questions/23318859/how-to-bind-aar-file-in-xamarin-with-visual-studio-xamarin

How can I build a targetting pack for Portable Class Libraries?

风流意气都作罢 提交于 2020-01-01 10:13:12
问题 I'm building some code with these portable class libraries at present. I'm looking to target full .Net, WinRT Metro, Windows Phone, ... and then MonoTouch and MonoDroid. My experiments today show this can work - http://slodge.blogspot.co.uk/2012/04/experiments-with-portable-class.html However, I have hit a fairly significant problem - MonoTouch and MonoDroid currently support these libraries in that you can consume PCLs as binary assemblies, but they don't allow linking between project files

How can I build a targetting pack for Portable Class Libraries?

两盒软妹~` 提交于 2020-01-01 10:13:09
问题 I'm building some code with these portable class libraries at present. I'm looking to target full .Net, WinRT Metro, Windows Phone, ... and then MonoTouch and MonoDroid. My experiments today show this can work - http://slodge.blogspot.co.uk/2012/04/experiments-with-portable-class.html However, I have hit a fairly significant problem - MonoTouch and MonoDroid currently support these libraries in that you can consume PCLs as binary assemblies, but they don't allow linking between project files

As of Visual Studio 2017 15.5.1, How Does One Create a Xamarin.Forms Project to Target Minimum Android KitKat (API 19) with PCL now obsolete?

丶灬走出姿态 提交于 2020-01-01 10:05:32
问题 I want to know how to create a Xamarin.Forms Project that targets minimum version of Android Kitkat (API 19), without using the Shared Project option. .Net Standard Library is not an option since the minimum supported Android version is Nougat. A large percentage of my target users (more than 40%) still uses phones with an Android version lower than Nougat. In Visual Studio 15.5.1 or greater, no PCL option is provided under the Code Sharing Strategy Section in creating a new Xamarin.Forms

Xamarin.Forms custom Android NavigationPageRenderer title and subtitle

南楼画角 提交于 2020-01-01 10:01:12
问题 Currently working on a project where I want to use AppCompat and have a requirement setting title and subtitle on most of the pages. It doesn't work using AppCompat at all - neither setting the properties nor using a custom view. When not using AppCompat both works as expected. The full source code is available here so just run the app if you're curious :) using System.ComponentModel; using Android.App; using Android.Widget; using App1.Droid.Renderers; using Xamarin.Forms; using Xamarin.Forms