Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Forms:TableView中TableSection中的标题在Android上不显示_Android_Xamarin_Xamarin.forms_Tableview - Fatal编程技术网

Forms:TableView中TableSection中的标题在Android上不显示

Forms:TableView中TableSection中的标题在Android上不显示,android,xamarin,xamarin.forms,tableview,Android,Xamarin,Xamarin.forms,Tableview,我正在应用程序中使用TableView。TableSection下的标题在iOS上显示,但在Android上不显示。我怎样才能解决这个问题 <TableView Intent="Settings" HasUnevenRows="true" BackgroundColor="#E7E7E7"> <TableRoot> <TableSection Title="Child Info"> &l

我正在应用程序中使用TableView。TableSection下的标题在iOS上显示,但在Android上不显示。我怎样才能解决这个问题

<TableView Intent="Settings" HasUnevenRows="true" BackgroundColor="#E7E7E7">
        <TableRoot>
            <TableSection Title="Child Info"> 
                <ViewCell x:Name="Profile">
                    <StackLayout 
                        BackgroundColor="White" 
                        HeightRequest="40" 
                        Orientation="Horizontal" 
                        VerticalOptions="Start" 
                        HorizontalOptions="Fill" 
                        Padding="10">

                            <Label 
                                Text="Child Profile" 
                                VerticalOptions="CenterAndExpand" 
                                HorizontalOptions="Start" />
                            <Image 
                                IsVisible="{Binding IsError}" 
                                Source="ic_provider_error" 
                                WidthRequest="30" 
                                HeightRequest="30" 
                                HorizontalOptions="Start" 
                                VerticalOptions="Center" />
                            <Button 
                                BackgroundColor="Transparent" 
                                TextColor="Blue" 
                                x:Name="profileSync" 
                                Text="Sync" 
                                VerticalOptions="CenterAndExpand" 
                                HorizontalOptions="EndAndExpand" 
                                Clicked="OnChildProfileClicked" 
                                IsVisible="{Binding IsProgress, Converter={StaticResource inverter}}" />                            
                                <Label 
                                    Text="{Binding Content}" 
                                    VerticalOptions="CenterAndExpand" 
                                    HorizontalOptions="EndAndExpand" 
                                    IsVisible="{Binding IsProgress}" />                         
                    </StackLayout>


您的意思是安卓系统上不显示标题“儿童信息”吗?我用安卓6.0在模拟器上进行了测试,结果很好。你能提供更多的信息,比如你的Xamarin.Forms版本,你的android项目的目标版本和你的模拟器吗?我用三星galaxy s4来测试。是的,孩子信息没有显示。同样的情况也发生在我的三星Galaxy Tab E上,Android 4.4.4。应用目标是Android 6.0 Min版本4.0.3,根据6.0编译。使用的XF为2.3.3.193。安装了Xamarin 4.3.0.784和Xamarin.Android 7.1.0.41的VS2017 CE。在Win8机器上开发。