Bundling in Recyclerview- Android By Admin

I want to create a simple view like this. (red circle)

enter image description here

I searched on internet for Bundling in Recyclerview but I could not find any resources.

Can anyone tell me the name of this view or share any tutorial resources.

Can someone share an example of how to do it. Or any Tutorials on how to get this view . - Bounty question

  •  Open
  •  27-07-2016
  •  4
  •  205

Answers ( 4 )

 Posted on 27-07-2016

In recyclerview you can do this with item decoration.

An ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set. This can be useful for drawing dividers between items, highlights, visual grouping boundaries and more.

All ItemDecorations are drawn in the order they were added, before the item views (in onDraw()) and after the items (in onDrawOver(Canvas, RecyclerView, RecyclerView.State).
refer here


you can design a custom layout and inflate it using getViewByType in viewholder

 Posted on 27-07-2016

This is main Activity

public class MainActivity extends AppCompatActivity {
Toolbar toolbar;
    DrawerLayout dl;
    ActionBarDrawerToggle abdt;
    NavigationView navigationView;
    android.support.v4.app.FragmentManager fragmentManager;
    android.support.v4.app.FragmentTransaction fragmentTransaction;
    protected void onCreate(Bundle savedInstanceState) {
        toolbar = (Toolbar) findViewById(R.id.layout_toolbar);
        abdt=new ActionBarDrawerToggle(this,dl,toolbar,R.string.drawer_open,R.string.drawer_close);

 Posted on 27-07-2016

ItemDecorator from example below doesn't suite you. Try to use Expandable Listview, which helps you to adjust list, when user tap on image below list item, and expand size for another item, for example, chat messages in your image.

Use This Example!

 Posted on 27-07-2016

I think you better to follow this videos, i am sure my side this videos gives you a perfect idea on Android Recyclerview and also provide a solution for problem.

Please follow this youtube link: https://www.youtube.com/watch?v=XhbsNO2_oDI