我正在使用Xamarin.Forms
,目前正在尝试制作TableView
没有节标题的内容。现在iOS
这看起来很好,因为部分标题不可见或不可点击,但Android
标题是空白、可见和可点击的。
我试过这个http://forums.xamarin.com/discussion/18037/tablesection-w-out-header
xaml 中的代码 -
<TableView>
<TableView.Root>
<TableSection>
<TextCell Text="Login" Command="{Binding Login}" />
<TextCell Text="Sign Up" Command="{Binding SignUp}" />
<TextCell Text="About" Command="{Binding About}"/>
</TableSection>
</TableView.Root>
</TableView>
c#中的代码
Content = new TableView
{
Root = new TableRoot
{
new TableSection ()
{
new TextCell { Text="Login", Command = Login },
new TextCell { Text="Sign Up", Command = SignUp },
new TextCell { Text="About", Command = About },
},
},
};