如何解决在Android中更改Xamarin MultiMedia Picker的背景颜色
我正在使用Xamain.Essesntials在Xamarin.Forms应用程序中选择多个文件。 Android中的Upload控件使用以下代码选择文件-
async Task<IList<MediaFile>> PickMediaAsync(string type,string title,int resultCode)
{
mediaPickedTcs = new taskcompletionsource<IList<MediaFile>>();
var imageIntent = new Intent(Intent.ActionPick);
imageIntent.SetType(type);
imageIntent.PutExtra(Intent.ExtraAllowMultiple,true);
**Platform.CurrentActivity.StartActivityForResult(Intent.CreateChooser(imageIntent,title),resultCode);**
return await mediaPickedTcs.Task.ConfigureAwait(false);
}
可以更改图块。“选择文件”或“选择文件”,但是我无法在此处设置此标题的背景颜色及其字体颜色...目前是蓝色/白色,我想将其更改为某种颜色其他。
我可以对ios进行以下操作-
var navBar = UINavigationBar.AppearanceWhenContainedIn(typeof(GMImagePickerController));
navBar.SetBackgroundImage(ImageWithColor(MyColor.ToUIColor()),UIBarMetrics.Default);
vc.PresentViewController(currentPicker,true,() =>
{
UINavigationBar.Appearance.BarTintColor = MyColor ;
UINavigationBar.Appearance.TintColor = UIColor.White;
UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes
{
TextColor = UIColor.White
});
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。