iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello Crosslight Support,
looking at the MyInventory sample on iOS. When you mark an item as sold then its text in the list view is striked through and its color changes. On Android this is not the case.
How can you manage to change the style of a list view item (strike through, text color, bold, ...) via data binding on Android?
Thanks,
Thomas
Hello Thomas,BackgroundColor issue have been solved (CROS-724) you can download the nightly build hereIf the problem still persist please tell us :)Best Regards,Arief
Apologize for any inconvenience this problem may have caused you.
This problem has been forwarded to Crosslight development team to be investigated further. The report is filed under CROS-636. I will keep this thread updated with any news I heard from the team regarding CROS-636.
Thank you and have a nice day.
Hello Yudi,
when will the above CROS-636 be fixed? Crosslight 3 Update 2?
The hotfix for CROS-636 is arranged to be available on Crosslight 3 Update 2 which is expected to be arrived on late January 2015.I will keep you updated when the nightly build is ready to be evaluated.
I haven't seen CROS-636 on the fix list of Crosslight 3 Update 2 (Crosslight3_0_5000_185). What is the status of this bug?
Thanks
The latest status of CROS-636 has been resolved. I have tested the reported problem using Crosslight 3 Update 2 in my local end and found that it is no longer persist. The fix is performed in the sample project and not in the assembly of Crosslight.
Please obtain the updated MyInventory sample from Master branch of Crosslight sample repository and let us know if you have different result.
the sample almost works like intended. Please, try the following: go to Inventories.xml (Core) and set <Sold>1</Sold> and add a <SoldDate>4/10/2012</SoldDate> for one item. I expected that item to be sold which means it should appear with a strikethrough in the list. Instead there is a runtime error at startup and the item is not marked as sold with a strikethrough text. Tested on Android device.
Besides the error. I could not figure out what steps it needs to make the strikethrough work. Could you please explain the necessary steps.
Thanks,Thomas
Hello Thomas,
Sorry, actually this is mistyping from our own end, you can see it at line 114 and line 119 inside ModelServices/ItemRepository.cs.
//line 114
IsSold = ParseBoolean(x.Element("IsSold")),
//line 119
item.SoldDate = DateTime.Parse(x.Element("SoldDate").Value,CultureInfo.InvariantCulture);
The parser actually use <IsSold> and <SoldDate> name rather than <Sold> and <SellDate>, one thing to note after you change the inventories.xml that IsSold have bool.parse and can only accept On/Off, True/False, and Yes/No if you put 1 or 0 it will send unhandled exceptions.
Thank you very much for your discovery, we already fixed the samples. You can redownload the samples from our git server and please tell us if the problem still persist.
Best Regards,
Arief
Hello Arief,
Thank you for updating the sample. I will test this by the end of the week.
Again, the question: Could be please describe shortly what it takes to make the strikethrough of list item texts work? What is the trick? Is it the TextStyleConverter, is it the BindingProvider, do I have to make something special in the Android project?
A short explanation would be very helpfull.
Hello ThomasYes you are right, it was from TextLabelStyleConverter() ( which you put inside binding providers) as you can see from file Core/Converters/TextLabelStyleConverters.cs we only need to write:
StyleAttributes style = new StyleAttributes(); style.Strikethrough = true;
Thank to our crosslight library we only need to write that code, normally you need to use PaintFlag inside android Activity but if we want to set strikethrough to multiple layout it is better if we use this method, thats the reason why there are Converters folder.Hope that answer your question :)
Best Regards,Arief
I downloaded the newest version of the samples and unfortunately the Inventories.xml file is still wrong. There are still <Sold> and <SellDate> tags instead of <IsSold> and <SoldDate>. Or the repository is still wrong. Just as you like. Nevertheless because of your explanation I could fix this and then the sample works as intended.
Another question regarding the converter. I changed the ForegroundColor of the StyleAttributes to green. This works well. I also added the BackgroundColor property of the StyleAttributes and set it to red. On Android nothing happens. There is no red background. Why?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname