Questions tagged [getview]

To be used with the android tag. Refers to the getview(int position, View convertView, ViewGroup parent) method in the adapter class and other methods related to this. Add any other tags relevant to the question.

To be used with the . Refers to the getview(int position, View convertView, ViewGroup parent) method in the adapter class and other methods related to this. Use any other tags that are relevant to the question.

247 questions
-2
votes
2 answers

List View custom row

i have list view with 2 rows, I would like that the first row contains a text and a spinner, and the second row contains a text and an editText...someone can help me with the method getview?
-2
votes
1 answer

ArrayAdapter.getView returns only the last item being fetch

Here is my getview code. It always returns the last item being fetched. How can I resolve this problem. I am new to HolderView. *UPDATED CODES public static final char[] ALPHA = {'a', 'b'....}; int[] ICONS = {R.drawable.a, R.drawable.b....}; public…
qqrrrr
  • 575
  • 2
  • 8
  • 22
-2
votes
1 answer

issue in getView() of BaseAdapter the Viewholder is null

@Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { convertView = LayoutInflater.from(mContext).inflate( …
-2
votes
2 answers

Issue in adapters android

I have response where i am getting in adapters and displaying in textview but problem is it prints the item two times in listview. I checked the response. It also have only one item. But when I checked in debug mode, the loop prints in adapter two…
-2
votes
2 answers

Unable to see last element of a listview

I have a listview with each list element having 2 linear layouts under a single linear layout(vertical orientation). The second linear layout is set to gone and is visible only when we click on first one and is set to gone when we again touch first…
Jango
  • 119
  • 1
  • 1
  • 10
-3
votes
2 answers

Android: How to insert a call button in a Listview

PrintScreen I have a listView with 3 Views 1) ImageView 2) TextView 3) Button What I want to make is that when I click on a button, it gets triggered and call to the specific person. Telephone numbers are stored in strings.xml file as
bizimunda
  • 819
  • 2
  • 9
  • 26
-3
votes
1 answer

getview() method is not getting called at times in listview using custom Adapter.

I used a custom Adapter to display images using image url. Sometimes it works fine, but sometimes getview() is not being called. I can't find any error from my code. public class GridViewAdapter extends ArrayAdapter { private…
user3030026
  • 77
  • 1
  • 1
  • 5
1 2 3
16
17