Unable to deploy Xamarin app with Telerik Document Processing dlls when AOT is true in Release configuration.
An error with text like is displayed in Visual Studio:
XABLD7028: System.IO.FileNotFoundException: Could not find file '...\....Droid\obj\Release\120\aot\armeabi-v7a\libaot-Telerik.Documents.Fixed.dll.so'
DataBindingComplete event of the DataGrid should be fired when the associated data (ItemsSource) has been successfully bound to the control or any data operation like Group, Sort or Filter is applied. Currently the event handler is not called as expected.
There seems to be 2 issues with Telerik ui for xamarin and Xamarin.AndroidX.Core versions 1.3.2.2 and newer where A) Linker seems to be failing when set to "Sdk Assemblies Only" on Visual Studio 16.9.0.
The other issue is with Telerik RadListView and same AndroidX.Core at runtime I am getting the following exception:
System.TypeLoadException: 'VTable setup of type Telerik.XamarinForms.DataControlsRenderer.Android.ListViewAccessibilityDelegateCompat failed'
Please advise
When building against XF5 and after migrating a project you can get the following error:-
Severity Code Description Project File Line Suppression State
Error failed linking file resources. App1.Android
Error '5dp' is incompatible with attribute verticalOffset (attr) float [weak]. App1.Android
Error '10dp' is incompatible with attribute horizontalOffset (attr) float [weak]. App1.Android
It appears to be a conflict between
<PackageReferenceInclude="Xamarin.Google.Android.Material"Version="1.2.1.1" />
and Telerik assemblies.
If a dummy app is built with that Nuget it all works fine until the Nuget
<PackageReference Include="Telerik.UI.for.Xamarin" Version="2021.1.119.1" />
is added.
So you can have one or the other but not both.
Please see this GitHub thread where its discussed more and a sample app is posted.
(I am user Gmotagi in it)
https://github.com/xamarin/Xamarin.Forms/issues/13303
The App bar background color is gray, and the search bar doesn't look good with this black textcolor and dark gray background color.
The default SearchBar look on iOS:
if you look at the .nuspec file for the Telerik.UI.for.Xamarin.Documents.Flow package there is an entry in the
<framework> assemblies element;
<frameworkAssembly assemblyName=”WindowsBase” targetFramework=””/ >
This is what causes NuGet to drag the WindowsBase assembly in.
we cannot build the iOS project - we get the following error.
The type 'NotifyCollectionChangedAction' exists in both 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
We are not referencing the WindowsBase assembly directly, but on analyzing the Nuget dependencies we found the following dependency chain;
Telerik.UI.for.Xamarin (2020.3.1106.1) -> Telerik.UI.for.Xamarin.Documents.Flow (2020.3.1019) -> WindowsBase (Framework Assembly)
it seems that WindowsBase (and PresentationCore which is also included) are not intended for Xamarin iOS or Android applications.
Hi,
I was checking your updates on my mobile and the app crashed.
Steps:
1. Go to Calendar & Scheduling
2. Agenda View Configuration
3. Scroll to 2022 for example
4. Press Today button - app crashes
It is easily reproducuble.
Here is the log from logcat:
05-15 07:52:09.267 5756 5756 E AndroidRuntime: FATAL EXCEPTION: main
05-15 07:52:09.267 5756 5756 E AndroidRuntime: Process: com.telerik.xamarin, PID: 5756
05-15 07:52:09.267 5756 5756 E AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: length=109; index=-1
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at java.util.ArrayList.get(ArrayList.java:439)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.telerik.widget.calendar.agendaview.CalendarAgendaView$1.onScrolled(CalendarAgendaView.java:78)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.support.v7.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:4961)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:4021)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3652)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4194)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.telerik.widget.calendar.agendaview.CalendarAgendaLayout.arrange(CalendarAgendaLayout.java:102)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.telerik.widget.calendar.RadCalendarView.onLayout(RadCalendarView.java:1132)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.ViewRenderer_2.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.ViewRenderer_2.onLayout(ViewRenderer_2.java:47)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md59ee76e6e58d2e8d37e01f503ba67c2ac.RadViewContainerBase.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md59ee76e6e58d2e8d37e01f503ba67c2ac.RadViewContainerBase.onLayout(RadViewContainerBase.java:46)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.ViewRenderer_2.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.ViewRenderer_2.onLayout(ViewRenderer_2.java:47)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.onLayout(PageRenderer.java:72)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.onLayout(NavigationPageRenderer.java:65)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.n_onLayout(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.onLayout(PlatformRenderer.java:55)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.android.internal.policy.DecorView.onLayout(DecorView.java:1041)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.View.layout(View.java:22419)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewGroup.layout(ViewGroup.java:6584)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3378)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2842)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1888)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8511)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:761)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:696)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7050)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
05-15 07:52:09.267 5756 5756 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
April 2020 Deadline
Apple will no longer accept applications published with anything less than Xamarin.Forms 4.5 after April 2020.
This is due to the UIWebView flag that is in Xamarin.Forms 4.4 and earlier
ITMS-90809: Deprecated API Usage- Apple will stop accepting submissions of apps that use UIWebView APIs starting from April 2020 .
Please visit this documentation for full explanation. Just to share the highlights, Telerik UI for Xamarin will need to:
UIWebView
– Your code should not have any references to UIWebView
or any classes that make use of UIWebView
.Since 2020.1.218 the NuGet package for UWP Apps doesn't work, it references files that are not found during build.
//
When using the __ItemStyle properties of RadListView, they are not being applied if the SelectionMode is set to None. It makes sense that the PressedItemStyle and SelectedItemStyle properties are not used, since they are not applicable if nothing can be selected. However, the ReorderItemStyle in particular should still be used.
Example:
public class ItemStyleNotAppliedExample : ContentPage
{
private readonly ListViewItemStyle WhiteBG = new ListViewItemStyle
{
BackgroundColor = Color.White
};
private readonly ListViewItemStyle YellowBG = new ListViewItemStyle
{
BackgroundColor = Color.Yellow
};
private readonly ListViewItemStyle RedBG = new ListViewItemStyle
{
BackgroundColor = Color.Red
};
private readonly ListViewItemStyle BlueBG = new ListViewItemStyle
{
BackgroundColor = Color.Blue
};
public ItemStyleNotAppliedExample()
{
BackgroundColor = Color.Gray;
var items = new ObservableCollection<Item>
{
new Item("Item 1"),
new Item("Item 2"),
new Item("Item 3"),
new Item("Item 4"),
new Item("Item 5"),
};
Content = new RadListView
{
SelectionMode = SelectionMode.None,
IsItemsReorderEnabled = true,
ItemsSource = items,
ItemTemplate = new DataTemplate(typeof(ItemView)),
ItemStyle = WhiteBG,
PressedItemStyle = YellowBG,
SelectedItemStyle = RedBG,
ReorderItemStyle = BlueBG,
};
}
private class Item
{
public string Name { get; }
public Item(string name)
{
Name = name;
}
}
private class ItemView : ListViewTemplateCell
{
public ItemView()
{
var checkbox = new CheckBox
{
VerticalOptions = LayoutOptions.Center
};
var label = new Label
{
VerticalOptions = LayoutOptions.Center
};
label.SetBinding(Label.TextProperty, nameof(Item.Name));
View = new StackLayout
{
BackgroundColor = Color.Transparent,
Orientation = StackOrientation.Horizontal,
Children =
{
checkbox,
label
}
};
}
}
}
Hello,
RadPopup control causes memory leaks on iOS.
Here is the repro project https://github.com/VitalyKnyazev/RadPopupLeak
Thanks
Vitaly