xamarin.android

HybridWebView acting as full page browser

半世苍凉 提交于 2020-01-24 20:47:16
问题 I'm trying to have a webview that displays a website using an HybridWebView taken from here https://github.com/xamarin/xamarin-forms-samples/tree/master/CustomRenderers/HybridWebView XAML: <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:PortaleDocumenti.Xamarin" x:Class="PortaleDocumenti.Xamarin.MainPage"> <ContentPage.Content> <local:HybridWebView x:Name=

Xamarin Google Maps Apps targeting Android Pie are broken?

安稳与你 提交于 2020-01-24 20:16:29
问题 In order to try to troubleshoot an issue I'm having trying to create an app targeting Android Pie using Google Maps, I've decided to start a very small project to target and isolate what may be the problem I'm having, here's what I got... Create a new Android project targeting Android Pie, updated the support design library (Xamarin.Android.Support.Design) to 28.0.0.1 because by default the template seems to set the target at 8.1. I then added the the nuget package "Xamarin.GooglePlayServices

Start dual-sim settings page in xamarin android.ui

☆樱花仙子☆ 提交于 2020-01-24 01:04:28
问题 I want to launch the "dual sim settings" page from an android widget using xamarin android ui. So far I'm able to launch (for an example) DisplaySettings with var pN=Android.Provider.Settings.ActionDisplaySettings; var launchInt=new Intent(pN); launchInt.AddFlags(ActivityFlags.NewTask); context.StartActivity(launchInt); My phone offers dual sim settings. I can even add a widget for it on the home screen. Further using the App "Shortcut Creator" I managed to create a shortcut and the

Add ExpandableListView Under TabHost

假如想象 提交于 2020-01-24 00:33:07
问题 public class Boards : TabActivity { protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Tab); TabHost.TabSpec spec; Intent intent; intent = new Intent(this, typeof(Today)); intent.AddFlags(ActivityFlags.NewTask); spec = TabHost.NewTabSpec("today"); spec.SetIndicator("Today"); spec.SetContent(intent); TabHost.AddTab(spec); intent = new Intent(this, typeof(Tomorrow)); intent.AddFlags(ActivityFlags.NewTask); spec = TabHost.NewTabSpec("tomorrow"

Async await not wait the process using Visual Studio and Xamarin

拥有回忆 提交于 2020-01-23 17:30:51
问题 i don't know why my async not waiting the process, here is my code : userKu = new UserData(); btnLogin = FindViewById<Button>(Resource.Id.buttonLogin); protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); if (isOnline() == true) { AppPreferences ap = new AppPreferences(mContext); string usernameCekLogin = ap.getNamaUser(); //TOAST #1 Toast.MakeText(this, userKu.status, ToastLength.Long).Show(); isLogin(usernameCekLogin, userKu); /

Async await not wait the process using Visual Studio and Xamarin

假装没事ソ 提交于 2020-01-23 17:30:47
问题 i don't know why my async not waiting the process, here is my code : userKu = new UserData(); btnLogin = FindViewById<Button>(Resource.Id.buttonLogin); protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); if (isOnline() == true) { AppPreferences ap = new AppPreferences(mContext); string usernameCekLogin = ap.getNamaUser(); //TOAST #1 Toast.MakeText(this, userKu.status, ToastLength.Long).Show(); isLogin(usernameCekLogin, userKu); /

Load SVG file in Xamarin with SkiaSharp

混江龙づ霸主 提交于 2020-01-23 13:49:49
问题 From release 1.55.0 SkiaSharp has the support for reading SVG files. The package has been release few days ago (10 Nov. 2016) and I couldn't find enough documentation on how to use it. The following packages are required: SkiaSharp 1.55.0 SkiaSharp Views & Layers 1.55.0 SkiaSharp.Svg 1.55.0-beta1 The first question is what's the best way to load an SKSvg in Xamarin.Android? 回答1: Here two possible solutions to start working with SkiaSharp that are working for me: Loading SVG from Asset folder

Load SVG file in Xamarin with SkiaSharp

瘦欲@ 提交于 2020-01-23 13:49:27
问题 From release 1.55.0 SkiaSharp has the support for reading SVG files. The package has been release few days ago (10 Nov. 2016) and I couldn't find enough documentation on how to use it. The following packages are required: SkiaSharp 1.55.0 SkiaSharp Views & Layers 1.55.0 SkiaSharp.Svg 1.55.0-beta1 The first question is what's the best way to load an SKSvg in Xamarin.Android? 回答1: Here two possible solutions to start working with SkiaSharp that are working for me: Loading SVG from Asset folder

Load SVG file in Xamarin with SkiaSharp

放肆的年华 提交于 2020-01-23 13:48:06
问题 From release 1.55.0 SkiaSharp has the support for reading SVG files. The package has been release few days ago (10 Nov. 2016) and I couldn't find enough documentation on how to use it. The following packages are required: SkiaSharp 1.55.0 SkiaSharp Views & Layers 1.55.0 SkiaSharp.Svg 1.55.0-beta1 The first question is what's the best way to load an SKSvg in Xamarin.Android? 回答1: Here two possible solutions to start working with SkiaSharp that are working for me: Loading SVG from Asset folder

Android Webview cannot render the pdf sometimes and shows blank/white page instead

你。 提交于 2020-01-23 07:14:48
问题 Open the pdf in the webview using google docs Open the same pdf or different pdf again and again. Sometimes it will show the blank/white page in the android untill we refresh the webpage again for 1 or 2 times. I have made the sample on the pdf. The link for the project is shown below: https://github.com/gopalawasthi123/PdfWebView Hope this will help you Better. public void SetWebView(WebView webview,string externalUrl){ webview.Tag = "webview"; webview.Settings.JavaScriptEnabled = true;