Xamarin.Forms 2.3.1-stable

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

Important notes

  • When upgrading to Xamarin.Forms 2.3.1, users should upgrade their Xamarin installation to Cycle 7.
  • When upgrading Xamarin.Forms take care not to simply "update all" as that will update the Xamarin.Android.Support packages to an incompatible version. More info here.

2.3.1-stable

No changes since 2.3.1-pre3. Nuget package here.

2.3.1-pre3

Bug Fixes

  • 42074 - " TimePicker doesn't lose focus on Cancel" (PR)
  • 42352 - "[iOS] Xamarin.Forms 2.3.1.111-pre2 does not work with linker" (PR)
  • 42361 - "DatePicker crash on Android 4.4.2 Tablet after dialog is closed" (PR)

Other Fixes

  • [Android] Handle creating a default GroupHeader if no GroupHeaderTemplate is provided (PR)
  • Restore incorrectly renamed InvalidateMeasure method

2.3.1-pre2

Bugs Fixed

  • Bug 42277 - "DataTemplate System.InvalidCastException crash in 2.3.1-pre1"

Other Fixes

  • Regression on the height of a cell using UnevenRows on IOS.
  • Issues when using DataTemplateSelector

2.3.1-pre1

New Features

  • Added KeyboardFlags.None enum value and added Keyboard.Plain which uses KeyboardFlags.None for its implementation.
  • Added GridLength.Star as a convenience value to complement the existing GridLength.Auto

Bugs Fixed

  • 27417 - "Button.Image behaviors differently on each platform and has extra padding even with no Text" Fix: When an image and no text is specified for an image, the image position should default to centered (vertically and horizontally). This fixes a bug in the Android logic which leaves images aligned near the top of the button when the button is sufficiently taller than the image.
  • 31809 - "PopToRootAsync isn't working in my Windows Phone Runtime(8.1) project" Fix: When callingPopToRootAsync on 8.1/UWP, the navigation stack was being cleared, but the current page wasn't actually being set, so a crash would subsequently occur if attempting to call it again, for example. This was due to a missing event handler on the NavigationPageRenderer which sets the page to the expected root.
  • 33507 - "Android: "System.ArgumentException: 'jobject' must not be IntPtr.Zero" when setting Focus for Picker = True" Fix: ViewRenderer failed to unsubscribe from FocusChangeRequested on disposed and so attempted to dispatch a focus change request to a disposed renderer.
  • 36447 - "[Android] PinchGestureRecognizer Only Works on Android API Level 19+" Fix: Fix usage of a API18 only constructor on ScaleGestureDetector
  • 36662 - "MasterDetail.Detail not rendering controls properly when using Maps inside TabbedPage"
  • 37862 - "ListView with CachingStrategy=recycleElement Doesn't respect HasUnevenRows=True " Fix: Don't use the fixed LayoutConstraint when using uneven rows. We were using a fixed LayoutConstraint for the viewcell view, this caused Grid't using '*' (star) to skip computing the size of it's children and returning the cached value.
  • 38284 - "when creating a map in iOS, if the map is not visible when the page is created the zoom level is off" Fix: Update the current region of the MKMapView when visible. If the iOS MKMapView is invisible it will update it's region because there's no Frame/Bounds for calculation. We need to make sure we update the current region when the map is visible again.
  • 39187 - "UWP Navigation shows duplicate page when performing multiple nav operations"
  • 39486 - "HasUnevenRows=true ignored in Forms iOS project in TableView with CustomCell; row heights are not auto-sized"
  • 39802 - "Gap between ListView cells even if SeparatorVisablity is set to none"
  • 40005 - "[Android] Navigation Bar back button does not show when using InsertPageBefore(insertedPage, page1) to add a page to the stack before the first page."
  • 40333 - "[Android] IllegalStateException: Recursive entry to executePendingTransactions"
  • 40639 - "Xamarin.Forms 2.1.0.6529 (Android only). Unhandled Exception: Java.Lang.IllegalStateException: Recursive entry to executePendingTransactions when switching MainPage or children of TabbedPage in FormsAppCompatActivity"
  • 40704 - "Strange duplication of listview headers when collapsing/expanding sections"
  • 40740 - "UWP Platform constructor throws TypeLoadException." Modified calls to ApiInformation.IsTypePresent() in WinRT Platform.cs to compile and run when theStatusBar type is not present.
  • 40830 - "AppLinkEntry.KeyValues collection is always empty"
  • 40866 - "RegisterLink throws an ArgumentException on Android"
  • 40955 - "Memory leak with FormsAppCompatActivity and NavigationPage"
  • 40998 - "Hitting Esc when an action sheet displayed on UWP does not result in the await returning" Fix: On UWP, when DisplayActionSheet is being awaited, pressing escape while the ActionSheet is visible would cause it to disappear but not actually return any result. Checking for an escape keypress in the window and setting the result to ContentDialogResult.None (as no button was tapped) returns a result as expected.
  • 41038 - "MasterDetailPage loses menu icon on iOS after reusing NavigationPage as Detail" Fix: When a page is being removed we need to make sure we update the left toolbar item to show the master icon or text. We need to pas a reference of the remove page, because the NavigationPage still has that page in the navigation stack, the event fires on the renderer before it's removed from the internal children.
  • 41076 - "App Resume hangs on WP 8.1 (Silverlight)"
  • 41078 - " [Win 8.1] ListView not visually setting the initially selected item upon creation" Fix: On Windows 8.1, when the SelectedItem property on a ListView was set prior to the page it was contained in displaying, there was no indication of that item being selected (although the value was set) when the page eventually displayed. This is normally indicated via a background color on the cell. Subsequent selections of other items would cause the visual indication to work as expected. Explicitly calling OnElementItemSelected in OnElementChanged if the SelectedItem value has been set resolves this.
  • 41241 - "Custom Button Image Missized in Xamarin Forms Cross-platform in the WinPhone App" Fix: Previously, the Windows platforms hard-coded the size of button images to 30x30; this meant that larger images on buttons could not be displayed and smaller images were scaled up. This change removes the hard-coded size and uses the actual size of the image when laying out the button.
  • 41296 - "MarkupExtension not found in default namespace"
  • 41404 - "Xamarin Forms Master Page (of Master Detail Page) obscures Android status bar with Material Design"
  • 41424 - "DatePicker doesn't lose focus on Cancel"
  • 41842 - "Set MasterDetailPage.Detail = New Page() twice will crash the application when set MasterBehavior = MasterBehavior.Split" Fix: MasterDetailControl will no longer null out the TCS before it is used. Failure only occurs when the MainPage is swapped out and the Detail page is changed twice. UI test doesn't cover this scenario.
  • 41854 - "[UWP] NavigationPage back button remains when resetting Application.Curent.MainPage to ContentPage"

Other fixes

  • [Android] Isolate fragment management for children of MasterDetailPage
  • [Android] Can't reset BarTextColor to default on TabbedPage. Fix: storing default color for TabbedPage bar text on Android so we can reset it if necessary.
  • [Android] Fix android StartTimer race condition. This fixes the GREF issue reported by the Android team against Cycle 7
  • [iOS] Set the frame of a cell NativeView using the calculated positions and size
  • [iOS] Rotation and orientations methods now correctly forwarded in iOS. Allows programmatic rotation locking of screen.
  • [UWP] Make wrapper of a ViewCell respect margins
  • [WinRT/UWP] Center crop image on AspectFill to provide same experience that Android and iOS curently provide.
  • [WinRT] Add base platform as inner proxy navigation to Application, Fix back button issue [see 39187, 41854]
  • [XAML] fix Thickness.IsDefault. Bottom was ignored
  • Isolate fragment management for children of MasterDetailPage. If an AppCompat MasterDetailPage hosts NavigationPages or TabbedPages in either the Master or Detail sections, those pages are now wrapped in their own Fragment (and use that Fragment's ChildFragmentManager) to isolate their Fragment management operations and avoid recursive entry into the executePendingTransactions() method. Also fixed a disposal bug in the custom MDP renderer in Control Gallery. [see 40333, 40639]
  • Implemented the AppIndexProvider on non-AppCompact backend to fix bug on KeyValues on AppLinkEntry [see 40866, 40830]
  • Backend renderers now implement the correct position and size of the View of a ViewCell
  • Allow Registrar.RegisterAll to be invoked multiple times without causing exception
  • Data Pages docs added
  • Numerous small doc fixes
  • Added Mailing List info to the README.md

For full details on changes: click here

«13

Posts

  • seanydaseanyda GBMember ✭✭✭✭✭

    Cheers Bryan.

  • RaymondKellyRaymondKelly USMember ✭✭✭

    Looking forward to trying out the ListView fixes!

  • JohnHairJohnHair GBMember ✭✭✭✭
    edited June 2016

    Hmm, not sure how 39486 is supposed to work but Im not seeing any differences, my TableView has HasUnevenRows = true, my custom cell has a stack containing a multiline label with an extra long caption that leaks out of the cell. Anything else I need to do?

    The code:
    _table = new TableView
    {
    Intent = TableIntent.Menu,
    HasUnevenRows = true,
    Root = new TableRoot
    {
    new TableSection()
    {
    new ViewCell()
    {
    View = new StackLayout()
    {
    Orientation = StackOrientation.Vertical,
    VerticalOptions = LayoutOptions.FillAndExpand,
    Padding = new Thickness(15, 5, 15, 5),
    Children =
    {
    new Label()
    {
    Text = "this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test!"
    }
    }
    }
    }
    }
    }
    };

  • MiguelCervantesMiguelCervantes MXMember ✭✭✭
    edited June 2016

    Hey Folks,

    I'm having a problem with the latest versions of Xamarin in particular in 4.1.1, the problem is using service stack and a DTO with a property object.

    The bug is reported at the service stack support but it seems that the problem is with the Xamarin version 4.1.x because downgrading it to 4.0.3 fixes the problem.

    The problem is better explained with working proyects of the bug here: https://github.com/ServiceStack/Issues/issues/451

    And here is on stackoverflow http://stackoverflow.com/questions/38023606/servicestack-in-xamarin

    How can I report a bug?

  • ShawnCastrianni.5092ShawnCastrianni.5092 US ✭✭✭
    edited June 2016

    I am the one that fixed 39486. I tested it using my TestRowHeight sample app that is posted in the bug. However, when I try that same TestRowHeight against 2.3.1-pre1, not only is the bug not fixed, but now ListView is not even working with auto sizing rows.

    I will investigate further, but I am thinking some other change to 2.3.1-pre1 has affected perhaps the size calculations of StackLayout??

    I have attached my test program here as well.

  • JohnHairJohnHair GBMember ✭✭✭✭

    @ShawnCastrianni.5092 Thank you Shawn, I thought I was possibly doing something wrong. Thank you for confirming I am still sane (mostly at least).

  • ShawnCastrianni.5092ShawnCastrianni.5092 US ✭✭✭
    edited June 2016

    Looking through the list of other fixes, I see several other items that could impact this behavior that should be reviewed:

    1. 37862 - "ListView with CachingStrategy=recycleElement Doesn't respect HasUnevenRows=True " Fix: Don't use the fixed LayoutConstraint when using uneven rows. We were using a fixed LayoutConstraint for the viewcell view, this caused Grid't using '*' (star) to skip computing the size of it's children and returning the cached value.
    2. 39802 - "Gap between ListView cells even if SeparatorVisablity is set to none"
    3. 40704 - "Strange duplication of listview headers when collapsing/expanding sections"
    4. [iOS] Set the frame of a cell NativeView using the calculated positions and size
    5. Backend renderers now implement the correct position and size of the View of a ViewCell
  • @BryanHunterXam I have built my TestRowHeight program against Xamarin.Forms 2.3.1 branch source code and can recreate the issue described above.

    I then set my GIT X.F sandbox back in time to my commit which was supposed to fix the 39486 bug. I then recompiled my GIT X.F sandbox and my TestRowHeight program and EVERYTHING WORKED CORRECTLY, both ListView and TableView. This verifies some other commit made to 2.3.1 branch AFTER my bug fix broke something. I will checkout each commit on 2.3.1 one at a time to find out which commit broke ListView/TableView.

  • @BryanHunterXam @JohnHair @SamanthaHouts I have confirmed that the commit that causes ListView and TableView to mess up auto-calculation of row heights is:

    Fix 39802 (#217) by Rui Marinho
    https://github.com/xamarin/Xamarin.Forms/pull/217

    I grabbed each commit on the 2.3.1 branch one at a time until my TestRowHeight program failed.

  • rmarinhormarinho PTMember, Insider, Beta Xamurai

    Hi @ShawnCastrianni.5092 thanks for catching it up. I will revise my changes and try to figure what's broken.

    Btw there's a way to do what you were doing manually (find the broken pr) you can use git bisect.

  • rmarinhormarinho PTMember, Insider, Beta Xamurai

    Ok found the issue.. just a very small issue that seems to have passed the code review :/

  • After update Xamarin.Forms I have error: The "LinkAssemblies" task failed unexpectedly.
    I try change Android Target, but this not resolved this problem.

    The "LinkAssemblies" task failed unexpectedly.
    1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1616,5): error MSB4018: Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Xamarin.Forms.VisualElement::InvalidateMeasure()' (defined in 'FFImageLoading.Forms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'FFImageLoading.Forms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Xamarin.Forms.VisualElement::InvalidateMeasure()

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    Grouping ListViews seems to be broken on Android after update. With code like this:

    <ListView x:Name="themenListe" ItemTapped="OnListViewItemTapped" IsGroupingEnabled="true" GroupDisplayBinding="{Binding Title}" HasUnevenRows="true" ItemTemplate="{extensions:ThemaCellViewTemplateSelector}"></ListView>

    i get this exception

    06-30 15:29:46.993 I/MonoDroid( 2454): UNHANDLED EXCEPTION:
    06-30 15:29:46.994 I/MonoDroid( 2454): System.InvalidCastException: Specified cast is not valid.
    06-30 15:29:46.994 I/MonoDroid( 2454): at Xamarin.Forms.Platform.Android.ListViewAdapter.GetItemViewType (Int32 position) [0x00076] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:147
    06-30 15:29:46.994 I/MonoDroid( 2454): at Android.Widget.BaseAdapter.n_GetItemViewType_I (IntPtr jnienv, IntPtr native__this, Int32 position) [0x00009] in /Users/builder/data/lanes/3415/7db2aac3/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Widget.BaseAdapter.cs:227
    06-30 15:29:46.994 I/MonoDroid( 2454): at (wrapper dynamic-method) System.Object:0eacf2db-79ff-481d-81ab-d2e62bbaab02 (intptr,intptr,int)

  • rmarinhormarinho PTMember, Insider, Beta Xamurai

    @TomaszSkiba.0590 that seems a problem with 'FFImageLoading.Forms' it needs to be build agains 2.3.1-pre1

  • rmarinhormarinho PTMember, Insider, Beta Xamurai

    @DirkWilhelm if instead of a templateselector you a normal cell it works?

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    @rmarinho said:
    @DirkWilhelm if instead of a templateselector you a normal cell it works?

    Yes, that works.

  • JohnHairJohnHair GBMember ✭✭✭✭

    @rmarinho Re: Fix 39802, good spot, will the fix be in pre2 or will you reissue pre1?

  • BryanHunterXamBryanHunterXam USXamarin Team Xamurai

    We have a fix for "[iOS] Fix regression 2.3.1-pre1 UnevenRows"" That fix will ship in 2.3.1-pre2 (goal for -pre2 is later today)

    There is another issue (crashing bug) in the -pre1 that will affect anyone using DataTemplateSelector. That bug (info here) is being actively worked. The fix will be released as soon as possible (possibly in the 2.3.1-pre2 later today, but not 100% certain yet).

  • DarkwingDuckDarkwingDuck USMember ✭✭

    Please fix this issue which has already been confirmed: https://bugzilla.xamarin.com/show_bug.cgi?id=41639

    This one would be great, too: https://bugzilla.xamarin.com/show_bug.cgi?id=41638

  • JohnHairJohnHair GBMember ✭✭✭✭

    @BryanHunterXam looking forward to pre2, happy to test as soon as its available.

  • JohnHairJohnHair GBMember ✭✭✭✭

    @BryanHunterXam Im guessing it won't be available today, I'll rollback for now. Unfortunately I can't just take the updated ViewCellRenderer due to the use of internals and without pulling in a ton of other code. If I get time in the next few weeks I might set myself up to be able to build XF from the source.

  • rmarinhormarinho PTMember, Insider, Beta Xamurai

    Hey, he just pushed pre2 to nuget

  • JohnHairJohnHair GBMember ✭✭✭✭

    Groovy, will take a look later today...

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    @rmarinho Using DataTemplates in a listview now works again, but the layout is kind of broken.

    This is my code for my cell:

    <?xml version="1.0" encoding="UTF-8"?>
    <ViewCell xmlns="http://xamarin.com/schemas/2014/forms"
        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
        x:Class="ClickLearn.Mobile.Forms.ContentViews.ThemaCellView">
      <StackLayout BackgroundColor="#FFFFFF" Padding="4,1,4,1" >
        <Grid BackgroundColor="{Binding UIFarbe}" Padding="5" HeightRequest="75">
          <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
          </Grid.RowDefinitions>
    
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="30"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="40"/>
          </Grid.ColumnDefinitions>
    
          <Label Grid.Row="0" Grid.Column="0" Text="{Binding Sortierung, StringFormat='{0}.'}" TextColor="#FFFFFF" XAlign="End" YAlign="Center"/>
          <Label Grid.Row="0" Grid.Column="1" Text="{Binding Bezeichnung}" TextColor="#FFFFFF" YAlign="Center" LineBreakMode="WordWrap"/>
          <Label Grid.Row="0" Grid.Column="3" Text="{Binding DispAnzFragen}" TextColor="#FFFFFF" XAlign="End" YAlign="Center"/>
        </Grid>
      </StackLayout>
    </ViewCell>
    

    I attached screenshots, the first one is using Xamarin.Forms 2.1.0, the second one 2.3.1-pre2.

    The textcolor should be white, not black.
    The width of the gridview cells is wrong.
    The padding of the listviewcells is missing

  • SerenSeren TRMember

    I update to Xamarin forms 2.3.1-pre1 and I try to use Xamarin.Forms Themes
    I got many errors when I try to build
    How could you help me!

  • JohnHairJohnHair GBMember ✭✭✭✭

    @Seren, I would suggest posting a build error so people might have a chance of helping...

  • JohnHairJohnHair GBMember ✭✭✭✭

    @rmarinho The pre-2 release notes mention that we should by using cycle 7 to use pre-2, how crucial is that requirement? cycle 7 looks, quite frankly, like a bag of doo doo with many, MANY people downgrading.

  • SerenSeren TRMember

    @JohnHair said:
    @Seren, I would suggest posting a build error so people might have a chance of helping...

    Severity Code Description Project File Line Suppression State
    Error Attribute "maxActionInlineWidth" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 27
    Error Attribute "tabTextAppearance" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 29
    Error Attribute "expanded" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 14
    Error Attribute "layout_scrollFlags" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 15
    Error Attribute "layout_scrollInterpolator" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 15
    Error Attribute "behavior_peekHeight" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 16
    Error Attribute "behavior_hideable" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 16
    Error Attribute "layout_collapseMode" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 17
    Error Attribute "layout_collapseParallaxMultiplier" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 17
    Error Attribute "expandedTitleMarginEnd" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "titleEnabled" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleTextAppearance" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleGravity" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "statusBarScrim" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMarginBottom" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "contentScrim" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "collapsedTitleTextAppearance" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "toolbarId" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMargin" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMarginTop" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "collapsedTitleGravity" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMarginStart" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "keylines" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 19
    Error Attribute "statusBarBackground" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 19
    Error Attribute "layout_behavior" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "layout_anchor" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "layout_keyline" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "layout_anchorGravity" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "textColorError" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 21
    Error Attribute "bottomSheetDialogTheme" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 21
    Error Attribute "bottomSheetStyle" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 21
    Error Attribute "pressedTranslationZ" has already been defined App1.Droid

  • SerenSeren TRMember

    @BryanHunterXam
    I got this error s when I add Xamarin.Forms.Theme.Base -Pre
    to my Project !

    Please Help!
    thanks

    Severity Code Description Project File Line Suppression State
    Error Attribute "maxActionInlineWidth" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 27
    Error Attribute "tabTextAppearance" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 29
    Error Attribute "expanded" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 14
    Error Attribute "layout_scrollFlags" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 15
    Error Attribute "layout_scrollInterpolator" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 15
    Error Attribute "behavior_peekHeight" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 16
    Error Attribute "behavior_hideable" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 16
    Error Attribute "layout_collapseMode" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 17
    Error Attribute "layout_collapseParallaxMultiplier" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 17
    Error Attribute "expandedTitleMarginEnd" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "titleEnabled" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleTextAppearance" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleGravity" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "statusBarScrim" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMarginBottom" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "contentScrim" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "collapsedTitleTextAppearance" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "toolbarId" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMargin" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMarginTop" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "collapsedTitleGravity" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "expandedTitleMarginStart" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 18
    Error Attribute "keylines" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 19
    Error Attribute "statusBarBackground" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 19
    Error Attribute "layout_behavior" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "layout_anchor" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "layout_keyline" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "layout_anchorGravity" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 20
    Error Attribute "textColorError" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 21
    Error Attribute "bottomSheetDialogTheme" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 21
    Error Attribute "bottomSheetStyle" has already been defined App1.Droid 0665566C26C7B5\res\values\values.xml 21
    Error Attribute "pressedTranslationZ" has already been defined App1.Droid

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    Activating XamlCompilation breaks the layout (all an android, didn't test on ios yet). Just some examples:

    • Setting the backgroundcolor in xaml for a frame doesn't work.
    • images from Resources/drawable are not displayed when the source is set in xaml using OnPlatform
    • padding in a stacklayout is ignored

    The problems in my earlier posting http://forums.xamarin.com/discussion/comment/207559/#Comment_207559 is also related to the XamlCompilation. When i deactivate it, all looks as it should.

  • JohnHairJohnHair GBMember ✭✭✭✭

    @rmarinho Ive upgraded to pre2, now getting the following exception: "Method 'CGRect..ctor' not found" when displaying XF pages. Thats the same error I was getting with a previous stable version until you released a hot fix, btw. Although I understand this is a pre-release and it is used at my own risk. :smile:

  • JohnHairJohnHair GBMember ✭✭✭✭

    Updated to stable 7 (squeakybum time) and pre2 is working and so far looks good, uneven rows on tables appears to be working nicely.

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    @rmarinho There seems to be another problem with listviews when using CachingStrategy="RecycleElement".

    The Groupheaders are not shown and when you scroll to a group header this exeption is thrown:

    07-05 08:54:27.682 I/MonoDroid( 3563): UNHANDLED EXCEPTION:
    07-05 08:54:27.682 I/MonoDroid( 3563): System.InvalidCastException: Specified cast is not valid.
    07-05 08:54:27.682 I/MonoDroid( 3563):   at Xamarin.Forms.Platform.Android.ListViewAdapter.GetView (Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent) [0x000af] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:202 
    07-05 08:54:27.682 I/MonoDroid( 3563):   at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (IntPtr jnienv, IntPtr native__this, Int32 position, IntPtr native_convertView, IntPtr native_parent) [0x0001a] in /Users/builder/data/lanes/3415/7db2aac3/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.Widget.BaseAdapter.cs:443 
    07-05 08:54:27.682 I/MonoDroid( 3563):   at (wrapper dynamic-method) System.Object:6bfdc511-2dbd-4235-9ff6-e807af0dfb6d (intptr,intptr,int,intptr,intptr)
    
  • MichaelRumplerMichaelRumpler ATMember ✭✭✭✭✭

    @Seren said:
    Severity Code Description Project File Line Suppression State
    Error Attribute "maxActionInlineWidth" has already been defined App1.Droid D:\App1\App1\App1.Droid\obj\Debug\resourcecache\FE0E5F337EAFC0E9CF0665566C26C7B5\res\values\values.xml 27

    This usually comes when there is some leftover dll in your bin/obj folder. Close your IDE, delete all bin and obj folders and try again.

  • rmarinhormarinho PTMember, Insider, Beta Xamurai

    @DirkWilhelm Hi do you have a reproduction ? thanks.

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    @rmarinho Sorry, i don't, but i just added CachingStrategy="RecycleElement" to my listview from my posting on the first page of this thread:

    <ListView x:Name="themenListe" ItemTapped="OnListViewItemTapped" CachingStrategy="RecycleElement" IsGroupingEnabled="true" GroupDisplayBinding="{Binding Title}" HasUnevenRows="true" ItemTemplate="{extensions:ThemaCellViewTemplateSelector}" />

  • ThomasHagstrmThomasHagstrm SEMember ✭✭

    I'm looking forward to a stable of this version since it equals Prism.Forms support, but right now it does indeed have issues:

    Turning on linker for iOS causes build error with VisualElement.cs as I've reported here:

    https://bugzilla.xamarin.com/show_bug.cgi?id=42352

    Failed to resolve "System.Void Xamarin.Forms.VisualElement::InvalidateMeasure()" reference from "Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null"

    Obviously I've tried excluding Xamarin.Forms.Core from linking. Hope it can be fixed for next version.

  • AdrianKnightAdrianKnight USMember ✭✭✭✭

    I'm seeing the same build error with the iOS linker as well.

  • JohnHairJohnHair GBMember ✭✭✭✭

    I see an InvalidateMeasureInternal() method, I don't know if that does the same thing though.

  • DirkWilhelmDirkWilhelm USMember ✭✭✭

    @rmarinho here is a sample project with the CachingStrategy problem.

    The base is the example from https://developer.xamarin.com/samples/xamarin-forms/UserInterface\ListView\Grouping/

    I updated to the latest Xamarin.Forms 2.3.1.111-pre2 and added

    CachingStrategy="RecycleElement" HasUnevenRows="true"

    to the listview. I also set the height of the TextCell to 150 so that you can scroll the list.

    On iOS all wokrs fine.
    On Android the grouping headers are missing and when you scroll down and up an exeption is thrown.

«13
Sign In or Register to comment.