xamarin.android

Visual Studio update 15.7.2 breaks Xamarin Android project

旧时模样 提交于 2020-01-05 04:21:28
问题 After updating Visual Studio, I can no longer build the release version of my Xamarin project: 1>Foobar.Android -> C:\Apps\foobar-telerik-mobile-app\foobar\Android\bin\Release\foobar.Android.dll 1>No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily. 1

Calling Naviation.PushAsync from CustomMapRenderer when clicked on a marker

妖精的绣舞 提交于 2020-01-05 04:13:10
问题 I am working on a xamarin project for ios aswel as android where we are showing custom markers on the Xamarin.Forms maps, we want the user to navigate to another view when he clicks on a custom marker. We are using Navigation.PushAsync to navigate through the views. this is done from the viewmodels from the non platform specific code, and navigation.PushAsync can only be used there and not from the platformspecific code. Wich is where the customMapRenderers are and where the onlclick for the

Xamarin.Android Cannot pull table from Azure database in Android 10 Q

北慕城南 提交于 2020-01-05 04:10:12
问题 I did read that because lack of support for Netcore 2.1 the myItemsList = await App.MobileServiceAndroid.GetTable<MyTable>().ToListAsync(); does not currently work on Android, and there is a workaround to pass an HttpClientHandler() in the constructor of the MobileServiceClient, and so I did like this: public static MobileServiceClient MobileServiceAndroid = new MobileServiceClient(AppConstants.AZURE_PRODUCTION_WEB_API_URL, new HttpClientHandler()); But this is incomplete,its still not

Custom ListView Adapter Showing Incorrect Values [Mono Android]

自作多情 提交于 2020-01-05 04:02:12
问题 Hello Stack Overflow Android Users, Please help with the following question: Problem I'm writing an a feature for an app that lists species of fish. I'm using a custom ListView Adapter class (let's call this FishSpeciesListAdapter ) for the adapter. I have 27 fish species recorded as a default for the program as for now (you will eventually be able to add some yourself as well). The problem is that when I link the adapter to the actual listview xml object, it seems to iterate over the same 5

Xamarin.Android: Key Listener not working

纵饮孤独 提交于 2020-01-05 03:37:21
问题 In the OnCreate fragment method, I get my EditText from the layout and call SetOnKeyListener: Aaa = view.FindViewById<EditText>(Resource.Id.aaaText); Aaa.SetOnKeyListener(new LocationKeyListener()); Layout declaration: <EditText android:id="@+id/aaaText" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:imeOptions="actionNext" style="@style/LocationEditTextStyle" android:hint="AAA" app:MvxBind="Text Aaa.Value"/> EditText styles: <style name=

Xamarin.Android: Key Listener not working

只谈情不闲聊 提交于 2020-01-05 03:37:04
问题 In the OnCreate fragment method, I get my EditText from the layout and call SetOnKeyListener: Aaa = view.FindViewById<EditText>(Resource.Id.aaaText); Aaa.SetOnKeyListener(new LocationKeyListener()); Layout declaration: <EditText android:id="@+id/aaaText" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:imeOptions="actionNext" style="@style/LocationEditTextStyle" android:hint="AAA" app:MvxBind="Text Aaa.Value"/> EditText styles: <style name=

Issue while setting WindowSoftInputMode to AdjustPan

孤者浪人 提交于 2020-01-05 02:39:18
问题 I’m working on Xamarin forms project. I’ve many Entry fields in my application, one of them is in popup and the popup opens in the centre of the device screen. Also few entry fields are in scroll view. The issue is only with the Android Application. For iOS it’s working perfectly. When I click on Entry field in side the popup, the soft key board is opened and the UI of my popup gets disturbed. So, I decided to set WindowSoftInputMode = SoftInput.AdjustPan to my main Activity. This solves my

Different `google-services.json/GoogleService-Info.plist` for iOS/Android project based on build configuration in Xamarin

折月煮酒 提交于 2020-01-05 01:09:28
问题 So I have a requirement where my project should use different GoogleServices files for Android/iOS while using different configurations like for eg while I am using the debug configuration it should use the debug version of the file and in the release, it should use the release version. Something similar to Xamarin firebase different google-services,json for different build configurations When I follow the accepted the answer I get a compile-time error saying The command COPY /Y "$(ProjectDir

How to use a Selector with a ListView and custom Adapter to indicate the selected item

孤街浪徒 提交于 2020-01-04 13:07:06
问题 I've got an activity which has a ListView and I've created a custom Adapter based on BaseAdapter. The GetView method of the custom adapter uses a custom layout: view = context.LayoutInflater.Inflate(Resource.Layout.BluetoothDeviceListItem, null); The layout looks like this: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android

Creating custom notification with xamarin.android

Deadly 提交于 2020-01-04 11:50:52
问题 I have been trying to make a fully custom notification with Xamarin.android. My project targets min API of 14, so expended notification are supported. I'm trying to achieve the same look for all API's so i'm using Android.Support.V4.App.NotificationCompat.Builder . I have found out that you can use setCustomContentView to set a custom View that will change the layout of the notification complitly, which is what i aim for. Here is the code that i have tried to run: RemoteViews widgetLayout =