android-adapter Questions

2

Solved

I am facing this issue with my Recycler view while placing admob ads Problem: It is actually replaced the item from the list and place the ads After apply this solution recommended by one of the s...

14

Solved

I have implemented onClick listener to my ViewHolder for my RecyclerView But when I perform very fast double taps or mouse clicks, it performs the task (opens a seperate fragment in this case) twi...

8

Solved

I need to implement a search feature based on an EditText to my RecyclerView. The list must be filtered while typing. Here's the code : DisplayAdapter.java this is the adapter public class DisplayA...
Kurland asked 23/11, 2016 at 0:36

6

Solved

I am using ViewPager2 for my project. I need to use nested fragments inside a fragment with viewpager2. it works like charm until I try to navigate between fragments(not nested ones). After the fir...

43

Solved

I'm using the ViewPager from the compatibility library. I have succussfully got it displaying several views which I can page through. However, I'm having a hard time figuring out how to update the...

1

Solved

I'm using a template and I replaced the placeholder data with a Retrofit 2 request that parses a JSON file of the data from an URL and puts it into an object list. I ran into a problem where my ret...

1

Solved

Trying to get a string value from R.string to display here in my adapter but only getting an integer in return: class AlarmListAdapter() : RecyclerView.Adapter<RecyclerView.ViewHolder>() { c...

0

Hi folks I have a ViewPager2 with single activity architecture. When I click a button, I swap out the ViewPager2 host fragment with another one using the Jetpack Navigation library. This calls onDe...

8

Solved

What I want to achieve: I have a custom ListView adapter. To each Listitem I want to add a popup menu, pretty similar to the ListView in the current Google Play application. This is what I trie...
Cantabrigian asked 5/1, 2015 at 15:41

13

I'm trying to refresh specific item in RecyclerView. Story: Whenever user clicks on item, it shows AlertDialog. User can type some text by clicking ok button. I want to show this text in this item...
Horrid asked 8/9, 2015 at 12:5

2

Solved

i use this tutorial for creating tab. and now i have a recyclerview in each fragment and i want to notify them from mainactivity. how to access the adapter in fragment? i use this for calling ref...
Garlandgarlanda asked 8/8, 2015 at 7:35

2

Solved

I have a recyclerView. One of recyclerView items has an onClick method. In this method, I setVisibility for one Item to Visible(default is gone), also get the position and add it to an arrayList. o...

4

Solved

I tried setting height/width manually in button but it didn't work. Then implemented Layoutparams. But size shows small and not getting required dp value. XML <Button android:id="@+id/itemB...
Tellurium asked 15/1, 2017 at 8:44

6

Solved

I want to use a toggle to toggle between two different views but using the same RecyclerView. Basically, once you toggle, I want the RecyclerView adapter to recall onCreateViewHolder() but this tim...

2

How can I make the grouping and show the date view in my app. I am using recyclerview and java to show this messages Structure: --------- **12-04-2021** ---------- --Leftsidemessage-- ----rights...

6

Solved

I have a RecyclerView managed by a LinearlayoutManager, if I swap item 1 with 0 and then call mAdapter.notifyItemMoved(0,1), the moving animation causes the screen to scroll. How can I prevent it? ...
Enchantment asked 16/1, 2015 at 20:40

6

Solved

I have listview with custom adapter (base adapter). I want to get view from listview by position. I tried mListView.getChildAt(position) , but it is not working. How can i get item view by position...
Silviasilviculture asked 17/7, 2014 at 19:5

2

Solved

I'm performing a retrofit call inside an adapter..i have successfully implemented and also it is giving me the desired output but is it a good practice to perform this under adapter????? my app is ...

4

Solved

I'm struggeling with the RecyclerView. I use a recycler view to display the details of my model class. //My model class MyModel { String name; Double latitude; Double longitude; Boolean isOnl...

1

I'm using Android Room and Rx Flowable to update a RecyclerView will the object from my database. For better animation and performance, I updated the project to use the new ListAdapter in my projec...

1

Solved

I've updated my targetSdkVersion from 28 to 30 and I've noticed that getAdapterPosition() is deprecated (I'm not sure when this happened). In the documentation, they say the following: This method...
Cally asked 24/7, 2020 at 7:6

2

Solved

I want to place the admob native advanced ads in every 3 position of my recycler view in android app. I would like to use the template provided by Admob. https://github.com/googleads/googleads-mobi...

3

Solved

I'm trying to programmatically click on an item of a recyclerView. I'm using: recyclerView.findViewHolderForAdapterPosition(index).itemView.performClick(); This perfectly works when the index is...
Estell asked 26/10, 2015 at 0:24

2

Solved

I am trying to listen for row clicks (item clicks) on my recycler view from the Activity itself (not from adapter). My Adapter so far looks like this: public class ListMiestnostiAdapter extends R...

3

Solved

I wanted to use AutoCompleteTextView in my android application.I know how to use it with simple array of Strings, but I wanted AutoCompleteTextView to use list of Objects to perform completion.My c...
Bean asked 25/10, 2012 at 7:42

© 2022 - 2024 — McMap. All rights reserved.