Search in sources :

Example 1 with ExpandableRecyclerView

use of carbon.widget.ExpandableRecyclerView in project Carbon by ZieIony.

the class ExpandableRecyclerActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_expandablerecycler);
    final ExpandableRecyclerView recyclerView = (ExpandableRecyclerView) findViewById(R.id.recyclerView);
    recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
    final ExpandableFruitAdapter fruitAdapter = new ExpandableFruitAdapter(fruits);
    recyclerView.setAdapter(fruitAdapter);
}
Also used : ExpandableRecyclerView(carbon.widget.ExpandableRecyclerView) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 ExpandableRecyclerView (carbon.widget.ExpandableRecyclerView)1