Xamarin.Forms 2.0.1 Released

BryanHunterXamBryanHunterXam USXamarin Team Xamurai
edited January 2016 in Xamarin.Forms Releases

2.0.1.6505 (2.0.1-hotfix1)

Released Thursday, January 28, 2016

Bug fixes

  • [Android] Resolve crash in android related to fragment inflation
  • [iOS] Fix issue where InputTransparent stopped working in some scenarios on iOS

2.0.1.6495

Released Wednesday, January 20, 2016

Features

  • Add PanGestureRecognizer

Bug Fixes

  • [Android] Resolve issue where AnchorX was sometimes incorrectly represented on Android
  • [Android] Resolve issue where toolbar items sometimes disappeared
  • [Android] Resolve issue where back arrow was wrong color
  • [UWP] Updated ActionSheet to use a ContentDialog and use a more windows friendly theme
  • [XamlC] Fix all sorts of minor issues
  • [WinRT] Entry no longer has erronious padding/display when in password mode
  • [iOS] SearchBar text and placeholder colors now correct
  • [iOS] WebView crashes when loading an URL with encoded parameters
  • [WP8] Resolve issue where calling RemovePage for root of NavigationPage would result in a crash
  • [WP8] Resolve issue where images would sometimes get sized to 0,0 due to measurement before load finishes

Posts

  • JoeBoothJoeBooth USMember ✭✭

    yeh!

  • imkumarsaurabhimkumarsaurabh INMember ✭✭

    Thanks! we were struggling with "WP*: Resolve issue where calling RemovePage for root of NavigationPage would result in a crash" issue. Let me try again and see if it works.

  • JKayJKay USMember ✭✭✭
    edited January 2016

    Still Xamarin.Forms.Maps targets old Xamarin.Android.Support libraries and Xamarin.GooglePlayServices Which messes up the map when targeting API 23.

    From https://nuget.org/packages/Xamarin.Forms.Maps

    MonoAndroid 1.0
    Xamarin.GooglePlayServices.Maps (= 26.0.0)
    Xamarin.Android.Support.v7.MediaRouter (= 23.0.1.3)
    Xamarin.Android.Support.v7.AppCompat (= 23.0.1.3)

    Really Dissappointing. Maps is holding me back from testing any of these new releases

    If your application is using the Xamarin.Forms Maps NuGet, you should continue to compile against API 22 until the Xamarin.Forms.Maps NuGet has official support for the latest Google Play services SDK.

    Ref: Is Your App Ready for Android Marshmallow?

  • marlon.constantemarlon.constante BRMember ✭✭

    The InputTransparent property is being ignored in iOS.

    In previous versions of elements with "InputTransparent = true" did not receive touch events.
    It was also possible to overlay views, placing a transparent label on an input for example.
    Now this input does not receive more focus.

    In android everything continues to function as before.

  • ZontagZontag BRMember ✭✭

    Back arrow still with wrong color :neutral:

  • AlmaJensen.9398AlmaJensen.9398 USMember ✭✭✭

    I'll have to test this but with the previous version I was getting an issue with Xamarin forms on iOS when using a custom label renderer to make use of a custom font from Fontello. Whenever I would change the text that was being displayed or the text color my text would disappear to be replaced by a ? inside of a box. Android worked fine.

  • rmarinhormarinho PTMember, Insider, Beta Xamurai

    @marlon.constante can you try with 2.1.0-pre1 ?

  • marlon.constantemarlon.constante BRMember ✭✭

    @rmarinho I tested version 2.1.0-pre1.

    Unfortunately without success too.

    Follows the code used for the tests (Forms main class):

    public class App : Application
    {
        public App()
        {
            MainPage = new ContentPage {
                Content = new BoxView {
                    HorizontalOptions = LayoutOptions.Center,
                    VerticalOptions = LayoutOptions.Center,
                    WidthRequest = 200d,
                    HeightRequest = 200d,
                    BackgroundColor = Color.Red,
                    InputTransparent = true,
                    GestureRecognizers = {
                        new TapGestureRecognizer {
                            Command = new Command(async () => {
                                await App.Current.MainPage.DisplayAlert("Warning", "This should not be running!", "OK");
                            })
                        }
                    }
                }
            };
        }
    }
    
  • DavidTavarezDavidTavarez DOMember ✭✭✭

    I'm also stuck on this.

    @JKay said:
    Still Xamarin.Forms.Maps targets old Xamarin.Android.Support libraries and Xamarin.GooglePlayServices Which messes up the map when targeting API 23.

    From https://nuget.org/packages/Xamarin.Forms.Maps

    MonoAndroid 1.0
    Xamarin.GooglePlayServices.Maps (= 26.0.0)
    Xamarin.Android.Support.v7.MediaRouter (= 23.0.1.3)
    Xamarin.Android.Support.v7.AppCompat (= 23.0.1.3)

    Really Dissappointing. Maps is holding me back from testing any of these new releases

    If your application is using the Xamarin.Forms Maps NuGet, you should continue to compile against API 22 until the Xamarin.Forms.Maps NuGet has official support for the latest Google Play services SDK.

    Ref: Is Your App Ready for Android Marshmallow?

  • JKayJKay USMember ✭✭✭

    @marlon.constante
    Does this describe your bug?
    https://bugzilla.xamarin.com/show_bug.cgi?id=35248

    Or is it a separate issue?

  • ThomasHagstrmThomasHagstrm SEMember ✭✭

    @BryanHunter.xam So this should make Xamarin.Forms stable again, and push the fixes for Windows 10 UWP to stable?
    Are third party partners being notified? I'm waiting for UWP compatible packages for Telerik, InfraLogics, Multilingual Application Toolkit etc

  • marlon.constantemarlon.constante BRMember ✭✭

    @JKay @rmarinho I think it's a separate issue.
    Note that the latest stable version of Forms (2.0.0.6490) everything worked perfectly on iOS.

  • JKayJKay USMember ✭✭✭

    Has anyone else mentioned / Noticed the problem where XamlC is turned on and you have incorrect syntax in your application it sticks around even when fixed?

    e.g.
    1. turn on XamlC
    2. Write some incorrect Xaml and build your application (Compiler gives you an error.. Great!)
    3. fix inccorect syntax and build application, compiler gives you same error as before and doesnt build (Not Great :()
    4. have to clean, Rebuild restart visual studio to get rid of error

  • AxelCharpentierAxelCharpentier FRMember ✭✭

    @JKay I have the same behaviour, but clean and recompile the project is enough to get rid of the Xaml error

  • JKayJKay USMember ✭✭✭

    @AxelCharpentier I'd imagine this is a bug in Xamarin. But I don't have enough experience with compilers to know what to file

  • TheRealJasonSmithTheRealJasonSmith USXamarin Team Xamurai

    its to do with the targets not managing to clean up everything in the obj forlder, we are trying to rework the .targets file to make it work cleanly as well as fully support all versions of VS Xamarin does (which is the real trick).

  • MiguelCervantesMiguelCervantes MXMember ✭✭✭

    I'm facing an issue with a switch in android, when I toggle/untoggle it several times it gives a

    System.ArgumentException: 'jobject' must not be IntPtr.Zero.
    Parameter name: jobject

    02-01 16:49:53.705 I/MonoDroid( 5823): UNHANDLED EXCEPTION:
    02-01 16:49:53.705 I/MonoDroid( 5823): System.ArgumentException: 'jobject' must not be IntPtr.Zero.
    02-01 16:49:53.705 I/MonoDroid( 5823): Parameter name: jobject
    02-01 16:49:53.705 I/MonoDroid( 5823): at (wrapper dynamic-method) System.Object:9e092ea9-7d39-4a57-90f7-4dabec8854b1 (intptr,intptr)
    02-01 16:49:53.705 I/MonoDroid( 5823): at (wrapper native-to-managed) System.Object:9e092ea9-7d39-4a57-90f7-4dabec8854b1 (intptr,intptr)
    02-01 16:49:53.705 I/MonoDroid( 5823): at (wrapper managed-to-native) System.Object:wrapper_native_0xb4de9a00 (intptr,intptr,intptr,Android.Runtime.JValue)
    02-01 16:49:53.705 I/MonoDroid( 5823): at Android.Runtime.JNIEnv.CallVoidMethod (IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue
    parms) [0x00040] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:567
    02-01 16:49:53.705 I/MonoDroid( 5823): at Android.App.Activity.RunOnUiThread (IRunnable action) [0x00044] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.App.Activity.cs:5727
    02-01 16:49:53.705 I/MonoDroid( 5823): at Android.App.Activity.RunOnUiThread (System.Action action) [0x00000] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/src/Android.App/Activity.cs:23
    02-01 16:49:53.705 I/MonoDroid( 5823): at Xamarin.Forms.Forms+AndroidPlatformServices.BeginInvokeOnMainThread (System.Action action) [0x00005] in :0
    02-01 16:49:53.705 I/MonoDroid( 5823): at Xamarin.Forms.Device.BeginInvokeOnMainThread (System.Action action) [0x00005] in :0
    02-01 16:49:53.705 I/MonoDroid( 5823): at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x00079] in :0
    02-01 16:49:53.705 I/MonoDroid( 5823): at (wrapper delegate-invoke) :invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
    02-01 16:49:53.705 I/MonoDroid( 5823): at MyProyect.Models.ProfileItem.OnPropertyChanged (System.String propertyName) [0x0000e] in e:\Neurona Virtual\Proyectos\NVSD15\MyProyect\App\MyProyect\MyProyect\Models\ProfileItem.cs:105
    02-01 16:49:53.705 I/MonoDroid( 5823): at MyProyect.Models.ProfileItem.SetProperty[U] (MyProyect.Models.U& backingStore, MyProyect.Models.U value, System.String propertyName, System.Action onChanged, System.Action`1 onChanging) [0x0004d] in e:\Neurona Virtual\Proyectos\NVSD15\MyProyect\App\MyProyect\MyProyect\Models\ProfileItem.cs:82
    02-01 16:49:53.705 I/MonoDroid( 5823): at MyProyect.Models.ProfileItem.set_Selected (Boolean value) [0x00001] in e:\Neurona Virtual\Proyectos\NVSD15\MyProyect\App\MyProyect\MyProyect\Models\ProfileItem.cs:30
    02-01 16:49:53.705 I/MonoDroid( 5823): at MyProyect.CustomViews.FriendListView.FrindListSelected_ItemTapped (System.Object sender, Xamarin.Forms.ItemTappedEventArgs e, MyProyect.ViewModel.BaseViewModel BVM) [0x00087] in e:\Neurona Virtual\Proyectos\NVSD15\MyProyect\App\MyProyect\MyProyect\CustomViews\FriendListView.cs:194
    02-01 16:49:53.705 I/MonoDroid( 5823): at MyProyect.CustomViews.FriendListView+<>c__DisplayClass1a.b__10 (System.Object sender, Xamarin.Forms.ItemTappedEventArgs e) [0x00000] in e:\Neurona Virtual\Proyectos\NVSD15\MyProyect\App\MyProyect\MyProyect\CustomViews\FriendListView.cs:111
    02-01 16:49:53.705 I/MonoDroid( 5823): at Xamarin.Forms.ListView.NotifyRowTapped (Int32 groupIndex, Int32 inGroupIndex, Xamarin.Forms.Cell cell) [0x00078] in :0
    02-01 16:49:53.705 I/MonoDroid( 5823): at Xamarin.Forms.ListView.NotifyRowTapped (Int32 index, Xamarin.Forms.Cell cell) [0x00017] in :0
    02-01 16:49:53.705 I/MonoDroid( 5823): at Xamarin.Forms.Platform.Android.ListViewAdapter.HandleItemClick (Android.Widget.AdapterView parent, Android.Views.View view, Int32 position, Int64 id) [0x00056] in :0
    02-01 16:49:53.705 I/MonoDroid( 5823): at Xamarin.Forms.Platform.Android.CellAdapter.OnItemClick (Android.Widget.AdapterView parent, Android.Views.View view, Int32 position, Int64 id) [0x0002e] in :0
    02-01 16:49:53.705 I/MonoDroid( 5823): at Android.Widget.AdapterView+IOnItemClickListenerInvoker.n_OnItemClick_Landroid_widget_AdapterView_Landroid_view_View_IJ (IntPtr jnienv, IntPtr native__this, IntPtr native_parent, IntPtr native_view, Int32 position, Int64 id) [0x00019] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Widget.AdapterView.cs:212
    02-01 16:49:53.705 I/MonoDroid( 5823): at (wrapper dynamic-method) System.Object:cb05ed58-5a83-4345-9898-9e4a2a8cf37f (intptr,intptr,intptr,intptr,int,long)
    02-01 16:49:53.705 W/dalvikvm( 5823): JNI WARNING: JNI function NewString called with exception pending
    02-01 16:49:53.705 W/dalvikvm( 5823): in Lmono/java/lang/RunnableImplementor;.n_run:()V (NewString)
    02-01 16:49:53.705 W/dalvikvm( 5823): Pending exception is:
    02-01 16:49:53.705 I/dalvikvm( 5823): md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
    02-01 16:49:53.705 I/dalvikvm( 5823): Parameter name: jobject
    02-01 16:49:53.705 I/dalvikvm( 5823): at Android.Runtime.JNIEnv.CallVoidMethod (IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue* parms) [0x00010] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:563
    02-01 16:49:53.705 I/dalvikvm( 5823): at Android.Widget.CompoundButton.set_Checked (Boolean value) [0x0005a] in /Users/builder/data/lanes/2512/d3008455/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Widget.CompoundButton.cs:507
    02-01 16:49:53.705 I/dalvikvm( 5823): at Xamarin.Forms.Platform.Android.AppCompat.SwitchRenderer.HandleToggled (System.Object sender, System.EventArgs e) [0x00011] in :0
    02-01 16:49:53.705 I/dalvikvm( 5823): at Xamarin.Forms.Switch+<>c.<.cctor>b__8_0 (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0001c] in :0
    02-01 16:49:53.705 I/dalvikvm( 5823): at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePr
    02-01 16:49:53.705 I/dalvikvm( 5823): at mono.java.lang.RunnableImplementor.n_run(Native Method)
    02-01 16:49:53.705 I/dalvikvm( 5823): at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.app.Activity.runOnUiThread(Activity.java:4713)
    02-01 16:49:53.705 I/dalvikvm( 5823): at md5b60ffeb829f638581ab2bb9b1a7f4f3f.CellAdapter.n_onItemClick(Native Method)
    02-01 16:49:53.705 I/dalvikvm( 5823): at md5b60ffeb829f638581ab2bb9b1a7f4f3f.CellAdapter.onItemClick(CellAdapter.java:88)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.widget.AdapterView.performItemClick(AdapterView.java:299)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.widget.AbsListView.performItemClick(AbsListView.java:1113)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2904)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.widget.AbsListView$3.run(AbsListView.java:3638)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.os.Handler.handleCallback(Handler.java:733)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.os.Handler.dispatchMessage(Handler.java:95)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.os.Looper.loop(Looper.java:136)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.app.ActivityThread.main(ActivityThread.java:5017)
    02-01 16:49:53.705 I/dalvikvm( 5823): at java.lang.reflect.Method.invokeNative(Native Method)
    02-01 16:49:53.705 I/dalvikvm( 5823): at java.lang.reflect.Method.invoke(Method.java:515)
    02-01 16:49:53.705 I/dalvikvm( 5823): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    02-01 16:49:53.705 I/dalvikvm( 5823): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    In mgmain JNI_OnLoad
    02-01 16:49:53.705 I/dalvikvm( 5823): at dalvik.system.NativeStart.main(Native Method)
    02-01 16:49:53.705 I/dalvikvm( 5823): "main" prio=5 tid=1 NATIVE
    02-01 16:49:53.705 I/dalvikvm( 5823): | group="main" sCount=0 dsCount=0 obj=0xa4d9dbd8 self=0xb85d5e70
    02-01 16:49:53.705 I/dalvikvm( 5823): | sysTid=5823 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=-1216602048
    02-01 16:49:53.705 I/dalvikvm( 5823): | state=R schedstat=( 10980269032 4265203171 20670 ) utm=663 stm=434 core=0
    02-01 16:49:53.705 I/dalvikvm( 5823): #00 pc 000bd9a6 /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+86)
    02-01 16:49:53.705 I/dalvikvm( 5823): #01 pc 00098583 /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+1155)
    02-01 16:49:53.705 I/dalvikvm( 5823): #02 pc 00098876 /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+86)
    02-01 16:49:53.705 I/dalvikvm( 5823): #03 pc 0004d217 /system/lib/libdvm.so (ScopedCheck::checkThread(int)+455)
    02-01 16:49:53.705 I/dalvikvm( 5823): #04 pc 00052d05 /system/lib/libdvm.so
    02-01 16:49:53.705 I/dalvikvm( 5823): #05 pc 00005eb7
    02-01 16:49:53.705 I/dalvikvm( 5823): at mono.java.lang.RunnableImplementor.n_run(Native Method)
    02-01 16:49:53.705 I/dalvikvm( 5823): at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
    02-01 16:49:53.705 I/dalvikvm( 5823): at android.app.Activity.runOnUiThread(Activity.java:4713)
    02-01 16:49:53.705 I/dalvikvm( 5823): at md5b60ffeb829f638581ab2bb9b1a7f4f3f.CellAdapter.n_onItemClick(Native Method)
    02-01 16:49:53.713 I/dalvikvm( 5823): at md5b60ffeb829f638581ab2bb9b1a7f4f3f.CellAdapter.onItemClick(CellAdapter.java:88)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.widget.AdapterView.performItemClick(AdapterView.java:299)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.widget.AbsListView.performItemClick(AbsListView.java:1113)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2904)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.widget.AbsListView$3.run(AbsListView.java:3638)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.os.Handler.handleCallback(Handler.java:733)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.os.Handler.dispatchMessage(Handler.java:95)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.os.Looper.loop(Looper.java:136)
    02-01 16:49:53.713 I/dalvikvm( 5823): at android.app.ActivityThread.main(ActivityThread.java:5017)
    02-01 16:49:53.713 I/dalvikvm( 5823): at java.lang.reflect.Method.invokeNative(Native Method)
    02-01 16:49:53.713 I/dalvikvm( 5823): at java.lang.reflect.Method.invoke(Method.java:515)
    02-01 16:49:53.713 I/dalvikvm( 5823): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    02-01 16:49:53.713 I/dalvikvm( 5823): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    02-01 16:49:53.713 I/dalvikvm( 5823): at dalvik.system.NativeStart.main(Native Method)

  • MiguelCervantesMiguelCervantes MXMember ✭✭✭

    The line of code is:

                    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    
  • MiguelCervantesMiguelCervantes MXMember ✭✭✭
    edited February 2016

    Its kind the same bug here

    I have a ListView with items and a switch control for each item. When selecting one and go back to see a "brief of items" and go back to the ListView and switch another eventually the error appears.

  • MiguelCervantesMiguelCervantes MXMember ✭✭✭

    Still having [Android] Resolve issue where back arrow was wrong color with 2.0.1.6505

Sign In or Register to comment.