This is a migrated thread and some comments may be shown as answers.

Bug - RadRadialGauge is not visible in Release on an Android device

1 Answer 77 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Remmo
Top achievements
Rank 1
Remmo asked on 25 May 2018, 11:04 AM

Hi all,

I use a very simple RadRadialGauge, when I run in debug my app everything is ok, but when I start it in release mode, I cannot see anything on  real device, heres the code:
<telerikGauges:RadRadialGauge StartAngle="90" Margin="0" SweepAngle="360" HorizontalOptions="FillAndExpand" Padding="0" VerticalOptions="FillAndExpand" >
                                <telerikGauges:RadRadialGauge.Axis>
                                    <telerikGauges:GaugeLinearAxis Maximum="1"   
                                                       Minimum="0"
                                                       ShowLabels="False"
                                                       StrokeThickness="0" />
                                </telerikGauges:RadRadialGauge.Axis>
                                <telerikGauges:RadRadialGauge.Ranges>
                                    <telerikGauges:GaugeRangesDefinition Offset="0">
                                        <telerikGauges:GaugeRange Color="{StaticResource YukoLightBlue}"
                                                      From="0"                                                               
                                                      To="1" />
                                    </telerikGauges:GaugeRangesDefinition>
                                </telerikGauges:RadRadialGauge.Ranges>
                                <telerikGauges:RadRadialGauge.Indicators>                                    
                                    <telerikGauges:GaugeRangeBarIndicator Fill="{StaticResource YukoForceDarkBlue}"
                                                              FromCap="ConcaveOval"
                                                              ToCap="Oval"
                                                              Offset="0"
                                                              From="0"                                                             
                                                              To="0.45" />
                                </telerikGauges:RadRadialGauge.Indicators>
                            </telerikGauges:RadRadialGauge>

Any helps is appreciated.

 

Thanks

 

Alessio

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 May 2018, 12:15 PM
Hello Remmo,

I am pasting here the reply from the support ticket regarding the same topic:

When you switch to Release mode, this enables the linker. The linker will remove assemblies that have no references in the app code, if you don't have Xaml Compilation enabled, the XAML is not compiled and there are no references at compile time.

To ensure there are references to controls so that the linker doesn't remove unused assemblies, either give everything an x:Name or enable Xamarin XAML Compilation (aka XamlC). I recommend enabling it on the assembly level, instead of per-page, as seen in the first example.


And finally what resolved the issue: the supported architecture in release mode should be set to "armeabi-v7a".

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Gauges
Asked by
Remmo
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or