Questions tagged [android-viewholder]

A ViewHolder object stores each of the component views inside the tag field of the Layout, so you can immediately access them without the need to look them up repeatedly. The ViewHolder pattern is often used in Android applications to improve performances of view access.

A ViewHolder object stores each of the component views inside the tag field of the Layout, so you can immediately access them without the need to look them up repeatedly. The ViewHolder pattern is often used in Android applications to improve performances of view access.

For an example, check the official Android documentation on the ViewHolder pattern.

1064 questions
-2
votes
2 answers

My application closes while scrolling down custom ListView

I'm using custom ListView and Adapter for load image and description into ListView. All the data loading from MySQL database. Then I try to scroll my list then automatically close my application. How can I solve this close problem? Adapter…
-2
votes
4 answers

Message view from both side in android

I'm working on a chatting application. All I did is i can get api response successfully and can show them serially like this This is id of sender and reciver This is the messages For doing this I created an adapter which code is something like…
user7310707
  • 39
  • 1
  • 1
  • 5
-2
votes
1 answer

Android Listview ViewHolder different items react together

I'm working on a ListView which use an Adapter and ViewHolder component in aim to ensure stability of items but I'm facing an unexpected behavior. At first I need to explain that my items aren't static : each item is a row with a checkbox and when…
Thibaud Renaux
  • 280
  • 1
  • 17
-2
votes
1 answer

Logic of ViewHolder's onBindViewHoleder() method?

I have may own class "Torrent" which contains some data about my uTorrent downloads on dedicated PC. ArrayList torrents is updating in background every second. So, I have a RecyclerView.Adapter like known pattern. Please, explain me, WHY…
-2
votes
1 answer

Can not set value to list view using custom adapter

When I am trying to set value to the list view using custom adapter it shows only the last entered value in the hash map. hash map is static.I dont know why I am not getting all the values in the hashmap for that keys I am used in hashmap. here my…
Bivin
  • 375
  • 3
  • 24
-2
votes
3 answers

Listview Crashes When I scroll down

I have a custom Listview with section header in it. And when the user click search the list has to load. The list is getting load but when I scroll down the listview its getting crash. I used viewholder also. But I didn't know how to fix it. And my…
Encipherer
  • 411
  • 7
  • 23
-2
votes
1 answer

android baseadapter return custom class not string

i'm working baseadapter.i have custom baseadapter.i use my adapter in spinner.i have one problem.mybaseadapter's OnItemClickedListener returned all my custom class carbon.widget.Spinner$CustomClass@535ca050s this is a result this is a my code …
-3
votes
1 answer

firebaseRecyclerAdapter gets filled, yet wont show anything in a dialog - Android Studio

So, I tried putting a recyclerView in a "popup" dialog using a firebaseRecyclerAdapter. My problem is, that I know for sure the adapter gets filled because I was using the Logcat to tell me when it adds another "user" to the adapter, but it wont…
-3
votes
2 answers

Android Viewholder

package com.jakewalther.x; import android.content.Context; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import…
user9651306
-3
votes
1 answer

How to pass data of Recyclerview.Viewholder into another Activity

Is it possible to pass data from a Recyclerview's Viewholder into another activity. for example I want to pass the Checkbox itembox which i declared inside Viewholder now i want to pass it into another activity lets say Validity.class so i can…
-3
votes
2 answers

Explain individual role of convertView and View Holder Pattern in ListView

Can anyone explain the individual role of convertView and View Holder Pattern in ListView, and how they increased the efficiency of listview? private class PersonsAdapter extends ArrayAdapter { @Override public View getView(int…
Maaz Aftab
  • 238
  • 2
  • 9
-3
votes
3 answers

How to use RecyclerView in creating list in android?

i want to create a list using a recyclerView please suggest me how to do it in android? public class MainActivity extends AppCompatActivity { RecyclerView myRecyclerView; @Override protected void onCreate(Bundle…
-4
votes
1 answer

Get ID from ViewHolder

i need to click in one image and send a URL (intent) but i have many images, so i tryed to get ID, but i can't find a proper away to do it, if you guys can help me i tryed everything i know public class ProgramAdapter extends…
Lestat2022
  • 11
  • 6
-5
votes
1 answer

Pass value from View Holder

I have Activity DishList, I use ListView to list items and button to go to next activity. I use adapter class DishListAdapter there I have ViewHolder class which hold TextView, ImageView etc. so when I click button in DishList it should fetch values…
1 2 3
70
71