webservicesとjsonを使用して、android xamarinのlistviewへのSQLデータベースからのイメージの表示方法?webservicesとjsonを使用してandroid xamarinのリストビューにSQLデータベースからイメージを表示するには?
public override View GetView(int position, View convertView, ViewGroup parent)
{
var item = objList[position];
if (convertView == null)
{
convertView = objActivity.LayoutInflater.Inflate(Resource.Layout.ContListViewHospName, null);
}
convertView.FindViewById<TextView>(Resource.Id.tvHospID).Text = item.HospID;
convertView.FindViewById<TextView>(Resource.Id.tvHospName).Text = item.HospName;
byte[] img = (byte[])item.HospLogo;
Bitmap bitmap = BitmapFactory.DecodeByteArray(item.HospLogo, 0, item.HospLogo.Length);
convertView.FindViewById<ImageView>(Resource.Id.imgLogo).SetImageBitmap(bitmap);
return convertView;
}
ありがとうございます。これは私のために働いています..このコードは、3日間の調査の結果、私に結果を得ました。ありがとうございます。 – Sashant