how to use skiacanvas as a GridView item?
ozkaro
66
Reputation points
Hellou!
I'm having an issue using skiacanvas as a grid view, what i want to do is draw each path data in a item in the grid but always draws the last path data. and if hide the screen buttons the stroke makes bigger
https://1drv.ms/u/s!AkcqazHa9zXrgbZ6LrcrlOFe53JN2Q?e=GoTFWy
here my code
public class kanji_detail_activity : AppCompatActivity
{
...
private string ReadPathString(string unicode)
{
string[] lines = null;
var readpath = from selunicode in dbCon.Table<StrokeDB>() where selunicode.unicode.Contains(unicode) select selunicode;
StrokeDB code = readpath.FirstOrDefaultAsync().Result;
string data_to_parse = null;
if (code.Path.Contains('|'))
{
int k = 0;
lines = code.Path.Split('|');
foreach (var lin in lines)
{
k = k + 1;
data_to_parse += lin;
strokeList.Add(new StrokeDataProcess(lin, data_to_parse, k.ToString()));
}
}
...
}
Sign in to answer