简体   繁体   中英

I want to use Resource !! (Xamarin.Forms 's custom renderer)

I'm trying to making a Table with Xamarin.Forms for Android.

First, there is no border on Table. So!

I made a border.xml file and make shape

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)

using resid in Resource.Designer.cs.

How I make resid(resource id) for border.xml 's shape and use it?

Thank you Soooooooooooooo much!

在此处输入图片说明

在此处输入图片说明

When I had a similar problem, I had created a Converter . You can find more example on Xamarin site https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM