47 Comments

  1. I need to scroll to position of item clicked, auto scroll, I mean if i click 5th element so it auto scroll to fifth element and make it to start of list, can I do that using adapter observer class? I did try item ranged but it does not work like I wanted to.

    Reply
  2. Awesome man… You are great. I was searching for this, As a beginner, I was not able to understand about RecyclerView. But your tutorials did. For Horizontal Recylcerview, I also recommend https://androidride.com/horizontal-recyclerview-android-example/ for beginners.

    Reply
  3. I got an issue: horizontal recycler view is not actually "wrap_content" with dynamically height of card view base on its content changed. More details, height of horizontal recycler view cuts off height of card view unfortunately. Maybe recycler view is smartly choosing better view holder to present data from its adapter.

    Reply
  4. Hi, Mitch! I learn from you very much and you helped to take my skills on the next level. Here is a suggestion for you, I personally like frecso (image loading library), you should give a chance to fresco. It also offered customization of look and feel of the image.

    Reply
  5. my pages are not scrolling properly. i need to hold for 2..4 second at the corner of mobile screen and need to scroll. sometimes it scrolls and the page stucks in between.please help on same

    Reply
  6. Query query = imageList.orderByChild("menuId").equalTo(categoryId);

    FirebaseRecyclerOptions options = new FirebaseRecyclerOptions.Builder<Gallery>()

    .setQuery(query, Gallery.class).build();

    query.addValueEventListener(new ValueEventListener() {

    @Override

    public void onDataChange(@NonNull DataSnapshot dataSnapshot) {

    for(DataSnapshot postSnapshot : dataSnapshot.getChildren()) {

    String galleryImage = postSnapshot.child("galleryImage").getValue(String.class);

    Gallery galleryList = new Gallery();

    galleryList.setGalleryImage(galleryImage);

    mvalues.add(galleryList);

    /* Gallery gallery = dataSnapshot.getValue(Gallery.class);

    mvalues.add(gallery);*/

    Log.e("Hello", String.valueOf(mvalues.size()));

    }

    }

    @Override

    public void onCancelled(@NonNull DatabaseError databaseError) {

    }

    });

    Array list size show six. image is only 3

    Reply

Post Comment