xamarin.android

Xamarin.Android, AndroidManifest.xml, AndroidManifestMerger, xmlns:tools schema, replace always manually

烂漫一生 提交于 2021-02-19 07:49:05
问题 When compile my Xamarin Forms Android application, visual studio, show me an error's list of AndroidManifest.xml conflict, for example: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error AMM0000: is also present at AndroidManifest.xml:14:9-41 value=(@string/app_name). (AMM0000) /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error AMM0000: Suggestion: add 'tools:replace="android

Xamarin.Android JmDNS binding issues

。_饼干妹妹 提交于 2021-02-18 22:31:27
问题 I started work on a JmDNS bindings for Xamarin.Android. I managed to get the binding to build but I can not reference it from within my code. https://github.com/ytn3rd/monodroid-bindings/tree/master/JmDNS First issue I had was there was no IDNSListener class to reference. So I added a partial interface in there for it. I have the function it needs void updateRecord(DNSCache dnsCache, long now, DNSEntry record); commented out as it would complain on not being able to reference DNSCache or

TimePicker with Spinners?

不羁岁月 提交于 2021-02-18 12:15:07
问题 I'm trying to build a TimePickerDialog but unfortunately the Time Picker that comes up is extremely cumbersome to Use : Is there any way to build a timepicker like the old ones that Android use to have like below : My code is as follows : ButtonTime.Click += delegate { ShowTimePickerDialog(); }; void ShowTimePickerDialog() { var dialog = new TimePickerDialogFragment(this, hour, minute, this); dialog.Show(FragmentManager, null); } 回答1: I would say use the Holo theme. I refer to following link

Xamarin Forms: Share Picture on Instgram [closed]

对着背影说爱祢 提交于 2021-02-17 07:05:46
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I am developing a Xamarin Forms application with Android and iOS solutions. I am desperately searching for a full example to allow a user to share on Instagrama picture taken from my app. Anyone can point to some good tutorial/example/github repo/etc. ? 回答1: You can't directly

How to fix java.lang.IllegalArgumentException: already added : Landroid/support/annotation/AnimRes

送分小仙女□ 提交于 2021-02-17 06:36:07
问题 There is no means to resolve the conflict between. I tried uninstalling Visual Studio, repairing Visual Studio but still useless. "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" y "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Se elegirá "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" de manera arbitraria. 1> Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid

How to update custom WebView height request when content is shrunk

北慕城南 提交于 2021-02-16 21:14:35
问题 The problem occurs on Android. I have implemented a custom renderer for a WebView to get the capability of resizing the height request base on its content. I took this from a xamarin forum post. [assembly: ExportRenderer(typeof(AutoHeightWebView), typeof(AutoHeightWebViewRenderer))] namespace MyProject.Droid.Renderers { public class AutoHeightWebViewRenderer : WebViewRenderer { public AutoHeightWebViewRenderer(Context context): base(context) {} protected override void OnElementChanged

How to update custom WebView height request when content is shrunk

 ̄綄美尐妖づ 提交于 2021-02-16 21:14:07
问题 The problem occurs on Android. I have implemented a custom renderer for a WebView to get the capability of resizing the height request base on its content. I took this from a xamarin forum post. [assembly: ExportRenderer(typeof(AutoHeightWebView), typeof(AutoHeightWebViewRenderer))] namespace MyProject.Droid.Renderers { public class AutoHeightWebViewRenderer : WebViewRenderer { public AutoHeightWebViewRenderer(Context context): base(context) {} protected override void OnElementChanged

Native Admob Ads in Xamarin.Forms. Are there any ready-made solutions / examples?

你离开我真会死。 提交于 2021-02-15 07:11:17
问题 I need to implement Native Ads in Xamarin.Forms. But I did not find any examples on Xamarin.Forms. Maybe someone has an example of using Native Ads on Xamarin.Forms and can share. My example of what I was trying to do: Android: [assembly: Dependency(typeof(NativeAd))] namespace Ads.Droid.Platform.Renderers.Ad { public class NativeAd : AdListener, INativeAd { Context context = Android.App.Application.Context; NativeExpressAdView mAdView; public void Show() { var videoOptions = new VideoOptions

Native Admob Ads in Xamarin.Forms. Are there any ready-made solutions / examples?

拥有回忆 提交于 2021-02-15 07:08:49
问题 I need to implement Native Ads in Xamarin.Forms. But I did not find any examples on Xamarin.Forms. Maybe someone has an example of using Native Ads on Xamarin.Forms and can share. My example of what I was trying to do: Android: [assembly: Dependency(typeof(NativeAd))] namespace Ads.Droid.Platform.Renderers.Ad { public class NativeAd : AdListener, INativeAd { Context context = Android.App.Application.Context; NativeExpressAdView mAdView; public void Show() { var videoOptions = new VideoOptions

Native Admob Ads in Xamarin.Forms. Are there any ready-made solutions / examples?

梦想的初衷 提交于 2021-02-15 07:08:33
问题 I need to implement Native Ads in Xamarin.Forms. But I did not find any examples on Xamarin.Forms. Maybe someone has an example of using Native Ads on Xamarin.Forms and can share. My example of what I was trying to do: Android: [assembly: Dependency(typeof(NativeAd))] namespace Ads.Droid.Platform.Renderers.Ad { public class NativeAd : AdListener, INativeAd { Context context = Android.App.Application.Context; NativeExpressAdView mAdView; public void Show() { var videoOptions = new VideoOptions