private ResolveInfoAdapter <ResolveInfo> BuilderAdapter(Context context, List <ResolveInfo> activitiesInfo) { return(new ResolveInfoAdapter <ResolveInfo>(context, Resource.Layout.intent_listview_row, //Resource.Id.intent_listview_title, BlazorWebViewService.GetResourceId("intent_listview_title", AndroidResourceType.Identifier), activitiesInfo)); }
public override Android.Views.View GetView(int position, Android.Views.View convertView, ViewGroup parent) { Android.Views.View view = base.GetView(position, convertView, parent); ResolveInfo res = ActivitiesInfo.ElementAt(position); ImageView image = (ImageView)view.FindViewById( BlazorWebViewService.GetResourceId("intent_listview_icon", AndroidResourceType.Identifier) ); image.SetImageDrawable(res.LoadIcon(BlazorWebViewService.GetCurrentActivity().PackageManager)); TextView textview = (TextView)view.FindViewById( BlazorWebViewService.GetResourceId("intent_listview_title", AndroidResourceType.Identifier) ); textview.Text = res.LoadLabel(BlazorWebViewService.GetCurrentActivity().PackageManager); return(view); }