Xamarin 表单:Android的自定义上下文操作
嗨,我有一个列表视图,我在其中添加了ContextActions 我需要在上下文操作中更改菜单项的文本大小、颜色和对齐方式, 我还想增加上下文操作的宽度,在哪个菜单项上显示 提前谢谢Xamarin 表单:Android的自定义上下文操作,xamarin,xamarin.forms,xamarin.android,Xamarin,Xamarin.forms,Xamarin.android,嗨,我有一个列表视图,我在其中添加了ContextActions 我需要在上下文操作中更改菜单项的文本大小、颜色和对齐方式, 我还想增加上下文操作的宽度,在哪个菜单项上显示 提前谢谢 更改单元格内容后,调用ForceUpdateSize() 当我按下单元格菜单项(call,delete按钮)时,我需要更改菜单项(call,delete)的颜色、宽度和位置,并且需要更改显示call和delete的导航栏的颜色和宽度。。。。 <ListView.ItemTemplate>
更改单元格内容后,调用ForceUpdateSize()
当我按下单元格菜单项(call,delete按钮)时,我需要更改菜单项(call,delete)的颜色、宽度和位置,并且需要更改显示call和delete的导航栏的颜色和宽度。。。。
<ListView.ItemTemplate>
<DataTemplate>
<customControls:ExtendedViewCell SelectedBackgroundColor="Transparent" >
<ViewCell.ContextActions>
<MenuItem Text="Call" />
<MenuItem Text="Delete" IsDestructive="True" />
</ViewCell.ContextActions>
<ViewCell.View>
<StackLayout HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand" Orientation="Vertical"
Padding="4" Spacing="8">
<Label TextColor="OrangeRed" Text="{Binding Title}" />
<Label TextColor="Blue" Text="{Binding Subtitle} "/>
</StackLayout>
</ViewCell.View>
</customControls:ExtendedViewCell>
</DataTemplate>
</ListView.ItemTemplate>