2

This is what I'm trying to get: click here(Link) for image

This is what I'm getting: Click here(Link)

I'm struggling with implementing the "lift" effect. I've tried using RecyclerView but failed to implement it!

Dev-iL
  • 23,742
  • 7
  • 57
  • 99
Hemanth Kaipa
  • 42
  • 1
  • 8

2 Answers2

0

it it not possible with recyclerview to achieve this type of calender view so i suggest you to use this library horizontal calender view

ND1010_
  • 3,743
  • 24
  • 41
0

You could use a RecyclerView with LinearLayoutManager and you need to set the layout manager's orientation to HORIZONTAL.

You could also add a field to the adapter to save the currently selected item's position, and have an special effect for that item in the rendering part.

Adib Faramarzi
  • 3,798
  • 3
  • 29
  • 44
  • Hi, I've edited the question. Please check with the image. – Hemanth Kaipa Jun 22 '17 at 07:38
  • I'm using recyclerview with LinearLayout and Horizontal orientation. – Hemanth Kaipa Jun 22 '17 at 07:39
  • From your image , it seems you are very close to the final image but the height is not right. check the RecyclerView's height and also the height of each view you pass to the adapter. (check for `match_parent` as layout height and convert it to `wrap_content`) – Adib Faramarzi Jun 22 '17 at 12:43
  • also to get rid of the clipped shadows in your items, add this to the layout of the children views: `android:clipChildren="false"` and `android:clipToPadding="false"` – Adib Faramarzi Jun 22 '17 at 12:46