xamarin.forms

How to set the android datepicker to spinner (not calendar) mode in Xamarin Forms?

霸气de小男生 提交于 2021-02-08 11:28:24
问题 When selecting the datepicker control in Xamarin Forms on an android device the Calendar Mode view of the datepicker is shown. How can I change it to show the Spinner Mode? The only sample I found was to update my styles.xml Here is what I have, which is not working <resources> <style name="MyTheme.Base" parent="@android:style/Theme.Holo.Light.DarkActionBar"> </style> <style name="MyTheme" parent="MyTheme.Base"> <item name="android:actionBarStyle">@style/MyTheme.ActionBarStyle</item> <item

How can I share local database of an existing app with a new app and make both work on it simultaneously?

一个人想着一个人 提交于 2021-02-08 10:51:01
问题 One of my client's inventory management project supports online as well as offline mode to manage huge inventory data and is built using Xamarin.Forms & sqlite-net. Now, the client wants to create another similar kind of app and wants us to use the same local db of the first app. The actual functionality he needs is that if I have data in one app then it can be shared to the second app and vice-versa. Like, if I'm logged into the first app then user automatically gets logged in to second app

How can I share local database of an existing app with a new app and make both work on it simultaneously?

会有一股神秘感。 提交于 2021-02-08 10:47:17
问题 One of my client's inventory management project supports online as well as offline mode to manage huge inventory data and is built using Xamarin.Forms & sqlite-net. Now, the client wants to create another similar kind of app and wants us to use the same local db of the first app. The actual functionality he needs is that if I have data in one app then it can be shared to the second app and vice-versa. Like, if I'm logged into the first app then user automatically gets logged in to second app

How to determine android device resolution is small, medium, or large

此生再无相见时 提交于 2021-02-08 10:44:50
问题 I am working on a Xamarin.Forms app and I need to identify the android screen/resolution is whether small, medium or large to adjust some content with the available space. For example, some labels (single line) are getting truncated in smaller devices. So I could make some adjustments if the resolution is smaller or not. In iOS, when iPhone screen getting bigger, the resolution is also getting increased so it's easy to identify smaller resolution devices in iOS. But in android, this seems

button with 2 images and text in xamarin forms

别等时光非礼了梦想. 提交于 2021-02-08 10:14:20
问题 I am trying to create a button with two images on it. One at left side and one at right side and text in center. After searching I got a button with image only so I wanted to know if it is posible to create a button as I described above in xamarin? I am trying to create button like this and also I want to change arrow image on the button click to up arrow and down arrow. Is it posible in xamarin to create button like this or should I think about another option any idea? 回答1: You can't

Image Loading Event

人盡茶涼 提交于 2021-02-08 10:13:07
问题 I want that when my image is loading then GIF image should be displayed but when image loading is completed then GIF should disappear. But I don't know how to do. Please tell me the step by step procedure. imageWave1.IsVisible = !imageWave1.IsLoading; stackBehindImage.IsVisible = true; imageWave1.IsVisible = true; stackFrontImage.IsVisible = false; Second Image is displaying where GIF should be displayed first then until the second image is Loading <StackLayout x:Name="stackFrontImage"

Remove left space in title view xamarin forms

淺唱寂寞╮ 提交于 2021-02-08 10:08:01
问题 I had an issue in removing the extra left space in title view as shown in the image below please see the screenshot here Ps: I'm using tabbed page and that bar is the navigation title view. 回答1: Set the xml below in your Toolbar.xml of Android part. app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" Do not forget to add the namespace of app in your Toolbar.xaml . xmlns:app="http://schemas.android.com/apk/res-auto" And check the code below, it need

Remove left space in title view xamarin forms

情到浓时终转凉″ 提交于 2021-02-08 10:05:16
问题 I had an issue in removing the extra left space in title view as shown in the image below please see the screenshot here Ps: I'm using tabbed page and that bar is the navigation title view. 回答1: Set the xml below in your Toolbar.xml of Android part. app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" Do not forget to add the namespace of app in your Toolbar.xaml . xmlns:app="http://schemas.android.com/apk/res-auto" And check the code below, it need

How do I distribute a font in a nuget package using the new csproj approach to create nuget packages?

我是研究僧i 提交于 2021-02-08 09:36:05
问题 I have a nuget package for Xamarin Forms (ios and android) with which I want to distribute a custom font. I can't find from the nuget documentation how I can include the font in the nuget package so that it gets added to the iOS or Android project that consumes the package. Is this even possible? If so, how? 回答1: How do I distribute a font in a nuget package using the new csproj approach to create nuget packages? To include the font in the nuget package and use it in the new csproj iOS or

How to create xamarin PCL Project in Visual Studio 2019

笑着哭i 提交于 2021-02-08 09:16:34
问题 I am not having option for PCL Project while Creating new xamarin project in VS 2019. I am getting option as shown in image I run old PCL Project, It is running successfully. Please help me to create PCL Project in VS 2019. 回答1: Portable Class Libraries (PCLs) are deprecated in the latest versions of Visual Studio. you can still open, edit, and compile PCLs For new projects it is recommended to use .NET Standard libraries to access a larger API surface area. For more details please refer