I've just deployed our customer app (written in Xamarin Forms) against Google Play, and got below crash, related to RadSideDrawer:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md584551188782d5fa8dfe47da9c668c306.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2684)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2751)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6186)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
Caused by: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<
init
>(SideDrawerState.java:71)
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
at android.os.Parcel.readParcelable(Parcel.java:2471)
at android.os.Parcel.readValue(Parcel.java:2365)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2813)
at android.os.Parcel.readSparseArray(Parcel.java:2068)
at android.os.Parcel.readValue(Parcel.java:2422)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2732)
at android.os.BaseBundle.unparcel(BaseBundle.java:271)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:934)
at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2104)
at android.app.Activity.onRestoreInstanceState(Activity.java:1048)
at android.app.Activity.performRestoreInstanceState(Activity.java:1003)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1175)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2657)
... 9 more
It was reported on two devices:
Sony E2303
and
Meizu M2 Mini
There was also another issue, probably strictly related to above:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md5c79fa08bcb7b9bf8fc5b2b2290dec874.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2344)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2404)
at android.app.ActivityThread.access$800(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5319)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Caused by: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<
init
>(SideDrawerState.java:71)
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
at android.os.Parcel.readParcelable(Parcel.java:2277)
at android.os.Parcel.readValue(Parcel.java:2177)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2571)
at android.os.Parcel.readSparseArray(Parcel.java:1899)
at android.os.Parcel.readValue(Parcel.java:2234)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2510)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:873)
at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1983)
at android.app.Activity.onRestoreInstanceState(Activity.java:1031)
at android.app.Activity.performRestoreInstanceState(Activity.java:986)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1161)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
... 10 more
Xamarin caused by: Java.Lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md5c79fa08bcb7b9bf8fc5b2b2290dec874.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean ---> Java.Lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
--- End of inner exception stack trace ---
--- End of managed Java.Lang.RuntimeException stack trace ---
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md5c79fa08bcb7b9bf8fc5b2b2290dec874.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2344)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2404)
at android.app.ActivityThread.access$800(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5319)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Caused by: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<
init
>(SideDrawerState.java:71)
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
at android.os.Parcel.readParcelable(Parcel.java:2277)
at android.os.Parcel.readValue(Parcel.java:2177)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2571)
at android.os.Parcel.readSparseArray(Parcel.java:1899)
at android.os.Parcel.readValue(Parcel.java:2234)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2510)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:873)
at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1983)
at android.app.Activity.onRestoreInstanceState(Activity.java:1031)
at android.app.Activity.performRestoreInstanceState(Activity.java:986)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1161)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
... 10 more
I see no event representing this occurrence - All of the items in the RadListView are visually built and ready for user interaction.
I have a wait spinner I display when a control is not ready for user interaction or when a screen is being built. I can easily make a change to a RadListView's ItemSource, but it takes a bit for the display to be properly built. Without an event the represents the finishing of the display, I have no known spot at which I can turn off my wait spinner.
I'm open to any and all ideas. Additionally, consider this an enhancement request for just such an event.
I am using RadSegmentedControl and RadListView
I need to set the multiple views in each segment like Tabs, I have added the 2 Segment buttons and 2 RadListView. Now I would like to show one RadListView once the segment change.
So let me know how to show different RadListView content on each segment selection.
I Used SelectionChanged event but If one Listview is showing. I am changing the IsVisible flag accordingly,
<telerikDataControls:RadListView x:Name="ListView1" IsVisible="{Binding IsWorkList}" ItemsSource="{Binding WorkListItems}">
<telerikDataControls:RadListView.ItemTemplate>
<DataTemplate>
<telerikListView:ListViewTemplateCell>
<telerikListView:ListViewTemplateCell.View>
<StackLayout Orientation="Vertical">
<Label Text="FormTypeAndDescription: "/>
<Label Text="{Binding FormTypeAndDescription}"/>
</StackLayout>
</telerikListView:ListViewTemplateCell.View>
</telerikListView:ListViewTemplateCell>
</DataTemplate>
</telerikDataControls:RadListView.ItemTemplate>
</telerikDataControls:RadListView>
<telerikDataControls:RadListView x:Name="listView2" IsVisible="{Binding IsPendings}" ItemsSource="{Binding PendingListItems}">
<telerikDataControls:RadListView.ItemTemplate>
<DataTemplate>
<telerikListView:ListViewTemplateCell>
<telerikListView:ListViewTemplateCell.View>
<StackLayout Orientation="Vertical">
<Label Text="DepartmentName: "/>
<Label Text="{Binding DepartmentName}"/>
</StackLayout>
</telerikListView:ListViewTemplateCell.View>
</telerikListView:ListViewTemplateCell>
</DataTemplate>
</telerikDataControls:RadListView.ItemTemplate>
</telerikDataControls:RadListView>
Thank you
Telerik XamarinForms Chart (v 2017.2.503.234)
I've tried setting a Minimum, Maximum, MajorStep, and MajorStepUnit in varying combinations, directly on the backing page code, in varying orders, and even directly bound to the context in xaml. And each time I end up with either an unexpected time range (data being charted into a future date, ie. the data charted doesn't align with the ticks as expected) or I end up with a massive number of ticks that don't match the values I set for major step and major step units.
I can't seem to find any additional documentation or similar issues reported, and after many hours of testing and changing the code, I feel as if something internal to the library is opting in or out of certain configuration values, based on which other values are set.
I've additionally had a very hard time diagnosing the issue and/or coming up with a solution as the API/Properties are very inconsistent across the other Telerik charting packages (Android, WPF, etc -- ie. MaximumTicks property)
Hello
i have tried to use this example
http://docs.telerik.com/devtools/xamarin/controls/autocomplete/getting-started/autocomplete-getting-started
but a blank page appears like attached image
i have updated every plugin in the app
what else should i do
Hi, I am Implementing the Bar series, I am able to draw the Bars, But I need to apply differnt colors to each bar,
I have Searched and gone through the documentation, but unable to find it,
I am implementing by using Xaml and Viewmodel , code is like below
<telerikChart:RadCartesianChart x:Name="chart" Grid.Column="1" Grid.Row="0" HorizontalOptions="End" HeightRequest="80">
<telerikChart:RadCartesianChart.BindingContext>
<local:ChartsViewModel />
</telerikChart:RadCartesianChart.BindingContext>
<telerikChart:RadCartesianChart.HorizontalAxis>
<telerikChart:CategoricalAxis ShowLabels="False"/>
</telerikChart:RadCartesianChart.HorizontalAxis>
<telerikChart:RadCartesianChart.VerticalAxis>
<telerikChart:NumericalAxis ShowLabels="False" />
</telerikChart:RadCartesianChart.VerticalAxis>
<telerikChart:RadCartesianChart.Series>
<telerikChart:BarSeries CategoryBinding="Category"
ValueBinding="Value"
ItemsSource="{Binding Data}" ShowLabels="False">
</telerikChart:BarSeries>
</telerikChart:RadCartesianChart.Series>
</telerikChart:RadCartesianChart>
The code in View Model is
public ChartsViewModel()
{
this.Data = GetCategoricalData();
}
public ObservableCollection<CategoricalData> Data { get; set; }
private static ObservableCollection<CategoricalData> GetCategoricalData()
{
var data = new ObservableCollection<CategoricalData> {
new CategoricalData { Category = "A", Value = 10 },
new CategoricalData { Category = "B", Value = 8 },
new CategoricalData { Category = "C", Value = 15 },
new CategoricalData { Category = "D", Value = 9 },
new CategoricalData { Category = "E", Value = 6 },
new CategoricalData { Category = "F", Value = 5 },
new CategoricalData { Category = "G", Value = 2 },
};
return data;
}
public class CategoricalData
{
public object Category { get; set; }
public double Value { get; set; }
}
}
Now I would like to apply different colors to each Bar, and also need to reduce the width of the Bar.
Can any one Help me out how to achive this,
I'm not sure where enhancement requests go so I figure I'll start here:
RadListVIew.SelectedItem is intended to represent the last item added to the SelectedItems collection. This paradigm makes sense when SelectionMode is set to Multiple. However, when SelectionMode is set to Single, implementers should be free to ignore the SelectedItems collection altogether set set SelectedItem. You can easily handle this feature by making the setter of SelectedItem public and in that setter, determining if SelectionMode is Single and then allowing the set to take place. If it is not set to Single, throw an exception or do something else to let implementers know that this action is disallowed.