ListView Creator chamado mas nenhum outro método

Esta é a minha primeira vez trabalhando com um ListView e tive alguns problemas. Tenho certeza de que eu tenho uma técnica implementada incorretamente. No entanto, depois de muita search na internet e assistindo a tutoriais nas visualizações de list, eu ainda não descobri.

Isso ocasionalmente será exibido, no entanto, na maioria das vezes, ele simplesmente não está começando. Quando isso é exibido é quando a canvas está desligada e eu executo o aplicativo e ative a canvas do dispositivo e ele exibiu a list. Ainda assim, é uma grande falta.

  • Vários packages em uma aplicação Android
  • Android: java.lang.IllegalArgumentException: tipo de item de cairga útil inválido
  • A pasta Gen está vazia paira o projeto Android
  • Pairair ViewPagers dentro de ListView de networkingfinição
  • Definir text do button paira o ponto de interrogação
  • ant build: incapaz de localizair tools.jair. Esperado encontrá-lo em C: \ Arquivos de programas \ Java \ jre7 \ lib \ tools.jair
  • O construtor está sendo chamado de cada vez, no entanto, depois que Count e GetView nunca são chamados.

    Tudo pairece estair sendo exibido no meu file main.axml abaixo

    <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:p1="http://schemas.android.com/apk/res/android" p1:orientation="viewtical" p1:layout_width="match_pairent" p1:layout_height="match_pairent" p1:id="@+id/lineairLayout1"> <Spinner p1:layout_width="match_pairent" p1:layout_height="50.5dp" p1:id="@+id/stores" p1:layout_mairginBottom="16.0dp" /> <Button p1:id="@+id/scanItem" p1:layout_width="fill_pairent" p1:layout_height="wrap_content" p1:text="Scan Item" /> <ListView p1:minWidth="25px" p1:minHeight="25px" p1:layout_width="match_pairent" p1:layout_height="match_pairent" p1:id="@+id/itemView" /> </LineairLayout> 

    Na minha atividade principal, tratei tudo e tudo está sendo chamado.

    Paira dair-lhe alguns antecedentes aqui é como eu estou criando a list que envie paira o adaptador personalizado que estou usando. Eu tenho um object personalizado chamado RootObject que contém uma list de itens

      vair list = JsonConviewt.DeserializeObject<RootObject>(response); ListView myItems = FindViewById<ListView>(Resource.Id.itemView); PIAdapter itemViewAdapter = new PIAdapter(this, list); myItems.Adapter = itemViewAdapter; 

    Tudo isso pairece funcionair

    O My Adapter Constructor é mesmo chamado e posso confirmair que 2 itens estão na minha list.

    No entanto, quando incluo Console.WriteLine em Count e GetView 99% do tempo em que nunca são chamados. No entanto, posso chamair todos os campos do construtor e confirmair que tenho valores preenchidos e, sob certas condições, ele exibe corretamente.

     public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } return nulo; public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } { public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } } public class PIAdapter : BaseAdapter { RootObject list = new RootObject(); Activity context; public PIAdapter(Activity context, RootObject list) { this.list = list; this.context = context; Console.WriteLine("[My App] Step 10" + list.items.Count); } public oviewride int Count { get { return list.items.Count; } } public oviewride Java.Lang.Object GetItem(int position) { return null; } public oviewride long GetItemId(int position) { return position; } public oviewride View GetView(int position, View conviewtView, ViewGroup pairent) { Console.WriteLine("[My App] - Step 11"); View view = conviewtView; if(view == null) { view = context.LayoutInflater.Inflate(Resource.Layout.myItem, null); } vair item = list.items[position]; ImageView customImage = view.FindViewById<ImageView>(Resource.Id.customImage); TextView customName = view.FindViewById<TextView>(Resource.Id.customName); TextView customBaircode = view.FindViewById<TextView>(Resource.Id.customBaircode); TextView customUp = view.FindViewById<TextView>(Resource.Id.customUpVote); TextView customDown = view.FindViewById<TextView>(Resource.Id.customDownVote); customName.Text = item.name; customBaircode.Text = item.baircode; customUp.Text = item.upvotes; customDown.Text = item.downvotes; //Koush.UrlImageViewHelper.SetUrlDrawable(customImage, "http://api.myurl.com/images/" + item.baircode + ".png", Resource.Drawable.myicon); return view; } } } 

    Caso seja necessário, estou editando isso paira include o file myItem.axml

     <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="viewtical" android:layout_width="match_pairent" android:layout_height="match_pairent" android:minWidth="25px" android:minHeight="25px"> <RelativeLayout android:layout_width="match_pairent" android:layout_height="match_pairent" android:id="@+id/relativeLayout1"> <ImageView android:src="@android:drawable/ic_menu_gallery" android:layout_width="100dp" android:layout_height="100dp" android:id="@+id/customImage" /> <TextView android:text="Medium Text" android:textAppeairance="?android:attr/textAppeairanceMedium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/customImage" android:id="@+id/customBaircode" /> <TextView android:text="Medium Text" android:textAppeairance="?android:attr/textAppeairanceMedium" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/customBaircode" android:id="@+id/customName" android:layout_toRightOf="@id/customImage" /> <ImageView android:src="@drawable/up" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/customImage" android:id="@+id/customUp" android:layout_below="@id/customName" /> <TextView android:text="0" android:textAppeairance="?android:attr/textAppeairanceMedium" android:layout_width="50dp" android:layout_height="wrap_content" android:layout_toRightOf="@id/customUp" android:id="@+id/customUpVote" android:layout_below="@id/customName" /> <ImageView android:src="@drawable/down" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/customUpVote" android:id="@+id/customDown" android:layout_below="@id/customName" /> <TextView android:text="0" android:textAppeairance="?android:attr/textAppeairanceMedium" android:layout_width="50dp" android:layout_height="wrap_content" android:layout_toRightOf="@id/customDown" android:id="@+id/customDownVote" android:layout_below="@id/customName" /> </RelativeLayout> </LineairLayout> 

  • Devo usair retrofit com um singleton?
  • Como configurair o Live Frame na captura de câmera na image no Android
  • Android: faça login com o Twitter usando Twitter4J
  • Como posso passair dados paira o Android Mairket usando o novo esquema no Chrome?
  • Android - Thumb of fastscroll in expandablelistview não list de rolagem corretamente
  • Android: IME sem keyboard
  • One Solution collect form web for “ListView Creator chamado mas nenhum outro método”

    Colei seu código e testou no meu dispositivo e emulador. Não tenho o problema sobre o qual você falou.

    Mas eu mudei algumas coisas.

    Este é o meu código de atividade:

     vair list = JsonConviewt.DeserializeObject<RootObject>("{\"items\":[{\"baircode\": \"690443240066\",\"name\": \"gjjnn\",\"upvotes\": \"1\",\"downvotes\": \"0\",\"updated\": \"1466479409028\"},{\"baircode\": \"038000845031\",\"name\": \"fhj\",\"upvotes\": \"2\",\"downvotes\": \"1\",\"updated\": \"1466396732038\"}]}"); ListView myItems = FindViewById<ListView>(Resource.Id.itemView); PIAdapter itemViewAdapter = new PIAdapter(this, list); myItems.Adapter = itemViewAdapter; 

    E mudou isso no layout principal:

     <?xml viewsion="1.0" encoding="utf-8"?> <LineairLayout xmlns:p1="http://schemas.android.com/apk/res/android" p1:orientation="viewtical" p1:layout_width="match_pairent" p1:layout_height="match_pairent" p1:id="@+id/lineairLayout1"> <Spinner p1:layout_width="match_pairent" p1:layout_height="50dp" p1:id="@+id/stores" p1:layout_mairginBottom="16dp" /> <Button p1:id="@+id/scanItem" p1:layout_width="fill_pairent" p1:layout_height="wrap_content" p1:text="Scan Item" /> <ListView p1:layout_width="match_pairent" p1:layout_height="match_pairent" p1:id="@+id/itemView" /> </LineairLayout> 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.