[英]I want to use Resource !! (Xamarin.Forms 's custom renderer)
I'm trying to making a Table with Xamarin.Forms for Android. 我正在尝试使用Android的Xamarin.Forms制作表。
First, there is no border on Table. 首先,表格上没有边框。 So!
所以!
I made a border.xml file and make shape 我做了一个border.xml文件并制作了形状
but when I do build this, an error occurred 但是当我建立这个时, 发生了一个错误
'Invalid start tag shape' “无效的开始标签形状”
I want to know how to fix it. 我想知道如何解决它。
And ! 还有! , Sorry for more question,
,很抱歉有更多问题,
after make resource .xml file I want to put in SetBackgroundResource(int resid) 在生成资源.xml文件之后,我想放入SetBackgroundResource(int resid)
using resid in Resource.Designer.cs. 在Resource.Designer.cs中使用resid。
How I make resid(resource id) for border.xml 's shape and use it? 我如何为border.xml的形状制作resid(资源ID)并使用它?
Thank you Soooooooooooooo much! 非常感谢Soooooooooooooo!
When I had a similar problem, I had created a Converter
. 当我遇到类似的问题时,我创建了一个
Converter
。 You can find more example on Xamarin site https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/ 您可以在Xamarin网站https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/中找到更多示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.