0

I want the RecyclerView to look like this:

enter image description here

How can I do that?

Aditya Vyas-Lakhan
  • 12,393
  • 15
  • 55
  • 92
Islam
  • 25
  • 1

3 Answers3

1

Use with GridLayoutManager for eg:

private RecyclerView.LayoutManager mLayoutManager;
mLayoutManager = new GridLayoutManager(mContext, 10);
holder.recycler_viewGv.setLayoutManager(mLayoutManager);

and try this link for highlighting Highlighting center item

Community
  • 1
  • 1
Sunisha Sindhu
  • 1,263
  • 11
  • 31
1

I suggest that you can try with this approach and change it as per your need

compile 'com.github.gastricspark:scrolldatepicker:0.0.1'

https://github.com/GastricSpark/ScrollDatePicker

https://github.com/hrules6872/HorizontalNumberPicker

<com.harrywhewell.scrolldatepicker.DayScrollDatePicker
    android:id="@+id/day_date_picker"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>

enter image description here

Aditya Vyas-Lakhan
  • 12,393
  • 15
  • 55
  • 92
  • actually i want exact the same view. ex: selected item is highlighted and rest are blur. – Islam May 03 '17 at 12:22
0

This is not exact what you are looking for but may give you some hint. Use RecyclerView with horizontal layout manager. MODIFY YOU ADAPTER CLASS In onBindViewHolder change your textview size based on postion

      if(position == mid of list){
       //Increase the text size 
      }else{
      //set the normal size to text view 
      }

...

M Art
  • 228
  • 3
  • 11