我们怎样才能把图像放在monodroid屏幕的标题栏中?我们如何才能把图像放在monodroid屏幕的标题栏中?
我试过使用下面的代码,但它显示错误,因为getwindow()不是一个有效的函数,我无法在monodroid中找到这个有效的等价物。
Boolean CustomTitleSupported = RequestWindowFeature (WindowFeatures.CustomTitle);
SetContentView(Resource.Layout.Search);
getwindow().setFeatureInt(WindowFeatures.CustomTitle, Resource.layout.titlebar);
请大家帮忙,因为android方法似乎不能在mono中工作。