Questions tagged [fastadapter]

FastAdapter is an Android library providing a more convenient interface built on top of Android's adapters. It aims to increase development speed.

See also:

39 questions
15
votes
3 answers

How to set two adapters to one RecyclerView?

I am developing an android app in which I'm storing two different types of information on 'FirebaseDatabase`. Then in the MainActivity, I'm retrieving them and showing to users in a RecyclerView. Both information are meant to be shown in different…
8
votes
5 answers

Unable to write an algorithm for filtering out items in a RecyclerView based on a long saved with each item

I have several items in a RecyclerView and each item has a long value saved with it. I'm using FastAdapter as the adapter for my RecyclerView. Suppose there are 7 items in the RecyclerView with the long values: 11122, 12321, -98811, 8870, -88009,…
Hammad Nasir
  • 2,889
  • 7
  • 52
  • 133
4
votes
2 answers

MikePenz FastAdapter usage

I am trying to implement the fastadapter. I just copied the sample code and tried to get it working. When I try it out it does not show anything in my recycler view. With debugging I found out that bindView() ist not getting called. My…
Stein.
  • 1,412
  • 2
  • 10
  • 18
3
votes
1 answer

How to get runtime permissions in adapter of a RecyclerView? Please see details

I'm developing an app in which I need the following runtime permission to start a service: @TargetApi(Build.VERSION_CODES.M) public void startFloatyForAboveAndroidL() { if (!Settings.canDrawOverlays(this)) { Intent intent =…
2
votes
0 answers

How to properly implement RecyclerView.ItemAnimator using the Lottie animation library?

I have a case where a view within RecyclerView items needs to be animated using the Lottie library. Each recycler view item is clickable and contains a liking Lottie animation. I defined a custom RecyclerView.ItemAnimator like this: class…
2
votes
1 answer

FastAdapter Click listeners for views inside item

I am trying to Implement a Click Listener for a Button Inside my CardView. The Item will be Deleted when I press this Button. But I can't find a way to implement it. The FastAdapter documentation is in Kotlin so there is no Java example. Generally…
2
votes
3 answers

FastAdapter flickers after loading from LiveData even though the data stays same

For the question I have prepared a simple and working example at Github: My example app downloads a JSON array containing top 30 players in a game using okhttp and stores them into SQLite Room. In the fragment I observe the corresponding…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
2
votes
2 answers

Getting Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. while generating signed apk

I'm trying to generate signed apk of my android app and the task is remaining unsuccessful giving me this error: Information:Gradle tasks [:app:assembleRelease] Warning:com.mikepenz.fastadapter_extensions.items.SingleLineItem: can't find referenced…
Hammad Nasir
  • 2,889
  • 7
  • 52
  • 133
2
votes
1 answer

FastAdapter Position

I am using fast adapter of the mike penz where I am trying to remove the item from the adapter. Its like when I press the accept button then the item must be removed from the list but to remove the like I need to pass the position variable in it but…
2
votes
1 answer

How to place ads randomly in between of RecyclerView?

I'm using FastAdapter in my app and I want to place ads randomly in between of RecyclerView. For ex - like an ad after 3 RecyclerView items then after 4, then after 2 and so on and so forth. This is how I'm using…
Hammad Nasir
  • 2,889
  • 7
  • 52
  • 133
2
votes
1 answer

ViewHolder not setting the string as text of a TextView. Please see details

I am using FastAdapter in my android project. This is how I am using it: public class HRequest extends AbstractItem { public String imageURL; public HRequest() { } public…
1
vote
1 answer

Scrolling issue with FastAdapter and ConstraintLayout: Skipped 211 frames

For my problem I have prepared a very simple AndroidX test app at Github: I am using the very nice FastAdapter library in my MainActivity: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
1
vote
1 answer

Android Room: Is it possible to use bounded type parameters in an entity?

I am currently combining Mike Penz Fastadapter with Android Room. The expandable model class needs to be implemented like this: public class MyClass extends…
1
vote
1 answer

Implement OnClickListener on FastAdapter implementing IItem

I am learning to use FastAdapter with Realm. Here is my model and this is how I implement OnClick in a Fragment: fastAdapter.withOnClickListener(new FastAdapter.OnClickListener() { @Override public boolean onClick(View v,…
A. K. M. Tariqul Islam
  • 2,824
  • 6
  • 31
  • 48
0
votes
0 answers

FastAdapter: second EventHook not firing

I love FastAdapter so far and have found it tremendously useful. However, I have a curious issue where I cannot register a second EventHook for a custom object type and get it to run. First ItemType My first EventHook looks like this: class…
shobhik
  • 200
  • 5
1
2 3