Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Custom ImageCell with round images on Android

$
0
0

Hello,

My app requires custom cellviews to be used in a ListView. I particular, it needs round pictures on each item.

I currently use the technique proposed in other related threads of this forum: I use a specialized CellView in which I have my custom layout, and use a mask-picture with transparent circle so as to give the illusion of a round image.

Yet, I have two difficulties with this approach:
a) the listview is terribly (unacceptably) slow (on android at least, and with last release of XF1.2.3), even with low quality png
b) the mask gets visible when an item is selected and sees its background color change to blue, as the mask color does not change accordingly.
Additionally, the listviews tend to crash when scrolled rapidly, with out of memory issues.

I need a more pragmatic solution. The listview needs to be fluid, and there should be no sign of a mask. I thought of using a custom cellrenderer. So my question is two-fold:
i) would a cell renderer help me improve the performance of the listview
ii) if so, can you give me some hints on how to start.

I am not familiar with Android development and am not sure how to even code a simple custom textcell. I have watched the video about custom renderers.

Thank you in advance.

Adrien


Viewing all articles
Browse latest Browse all 58056

Trending Articles