public new void OnClick(View v) { if (v.Tag != null) { QuestionActivity.Start(context, Convert.ToInt32(v.Tag.ToString())); } }
public void OnClick(View v) { if (v.Tag != null) { switch (position) { case 0: ArticleActivity.Start(context, Convert.ToInt32(v.Tag.ToString())); break; case 1: NewsActivity.Start(context, Convert.ToInt32(v.Tag.ToString())); break; case 2: KbArticleActivity.Start(context, Convert.ToInt32(v.Tag.ToString())); break; case 3: var tag = v.Tag.ToString(); var id = tag.Substring(tag.LastIndexOf("/") + 1); QuestionActivity.Start(context, Convert.ToInt32(id)); break; default: break; } } }