Questions tagged [custom-adapter]

A custom-adapter is an interface which provides the ability to define non-standard iterators for specific data representations.

A custom-adapter is often used to integrate custom data structures with a view in an MVC framework.

References

990 questions
1
vote
4 answers

Check if listview items contains specified data then start next activity

I have a Listview of custom adapter which has five fields in it. Name, Cnic, No, Desgination and attendance. Now what i want to do is that i have to check whether all the list items have some value written after attendance column. If there is any…
user8259253
1
vote
0 answers

How to implement custom listview adapter in tabbed activity?

I am trying to implement the custom list view in tabbed activity for youtube video playing app. I could not able to call custom listview adapter in fragment java class. I have tried to pass getActivity() to custom adapter but the app crashes. If any…
1
vote
2 answers

How to disable previous items in a ListView

I am trying to develop an activity where there is a custom listView made out of CustomAdapter. The list consists of a TextView and an EditText. The EditText when clicked, it auto fetches the system time. What I want is when a particular EditText is…
An08NY
  • 139
  • 15
1
vote
1 answer

populate custom listview from audio files inside a folder

I'm trying to get files from a folder and populate recyclerview based on the name of files using a custom adapter. This is how I'm doing it: In onBindViewHolder: Product m = dataList.get(position); //title …
Majid
  • 201
  • 2
  • 14
1
vote
1 answer

How to update item in RecycleView?

I am creating Application in which I have give functionality like Facebook timeline where people can update their story and any user can like or comment on the story. Everything is working fine but what I am facing issue is that when any user update…
1
vote
1 answer

Android delete firebase data using custom listview

Hello Everyone how i can delete on click item from custom listview. i am unable to delete the firebase data. Here is the Student Activity where all student will appear in custom listview i want to delete on click @Override protected void…
1
vote
1 answer

GridView OnClick Listener Doesn't Work Sometimes

I've a strange problem. I've a gridView with 9 items (0-8) (can be more/less). As the below picture shows, it shows first 4 items on my device's screen. A green tick mark is added whenever an item is clicked. It works fine almost every-time. But…
noob-Sci-Bot
  • 231
  • 5
  • 18
1
vote
1 answer

RecyclerView with in recyclerView with start ActivityOnresult

I have a recycler view(A) containing another recyclerview(B). When I click on the plus icon in recyclerview(A) item, it opens up a new activity with a recyclerview(C). Long pressing and selecting few items and clicking on done. This needs to update…
1
vote
1 answer

Cant update item in custom adapter

im trying to add touchlistener for every item in listview. here my code in my CustomAdapter for currentView (as i think) rowView.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View view,…
Peter
  • 2,480
  • 6
  • 39
  • 60
1
vote
1 answer

Delete an item of a listView by sliding it with my finger on the side

My goal is to delete an item of a listView by sliding it with my finger on the side. I've tried to put onTouchListener on layout which is on the ViewHolder class. I have several problems : When i slide down or top with my finger, the list scroll,…
1
vote
1 answer

Error on CustomAdapter that extends BaseAdapter

Hello I am trying to build a custom adapter that extends either base adapter or array adapter. But with both I receive the same errors. here is a part of my log. Error (29111) / AndroidRuntime: Caused by: android.runtime.JavaProxyThrowable:…
Akis
  • 143
  • 1
  • 2
  • 11
1
vote
2 answers

Android OnItemClickListener on custom ListView adapter

I am working on an Android application and I am trying to make the item click on a listView with custom adapter to work but am not being able to. I have my OnItemClickListener implemented inside the customer adapter. Would you know what I can be…
Fabio Lanza
  • 167
  • 2
  • 5
  • 14
1
vote
1 answer

How to make a call on button click in a ListView?

I have done the following code inside of my getView() method of CustomAdapter class. If I try to simply show a Toast, Toast appears, but if i do the following code to make a call, application crashes. What i am doing wrong here? …
1
vote
0 answers

Android - Spinner is not stable in custom ArrayAdapter

I have a custom array adapter with 2 textView, 1 spinner and 1 checkbox. When I run my app and select the item in the spinner and scroll the custom adapter the strings in spinner is not stable. It's changing its position in the customAdapter. The…
Simon
  • 461
  • 1
  • 5
  • 23
1
vote
2 answers

Search for Keyword in ListView with Custom Adapter

I have a list view with a search EditText above it. Each row in the list view consists of several texts and pictures. When the user enters a keyword in the search EditText, I want the listview to be updated with the rows that contain the keyword. I…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83