lsjwzh / RecyclerViewPager

Deprecated
Apache License 2.0
3.53k stars 667 forks source link

Question.. Horizontal Recyclerviewpager holding cardview not showing next card hint #28

Closed a-latta closed 9 years ago

a-latta commented 9 years ago

I am following the horizontal layout example and using Cardview as my recyclerview items. Like the example shows,I don't see the next card as a hint for user to scroll horizontally. Am I missing something?

lsjwzh commented 9 years ago

next card hint? Do you mean the padding?? You can define padding like this: <com.lsjwzh.widget.recyclerviewpager.RecyclerViewPager android:id="@+id/list" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="15dp" android:paddingRight="15dp" android:clipToPadding="false"/>

by setting this attr "android:paddingLeft" "android:paddingRight". You will see next and prev card.

a-latta commented 9 years ago

I want the user to know that the view is Horizontally scrollable, I want to show the cards on right edge of the screen kind of hinting that there are more cards.I have added padding but still my RecyclerViewPager shows the card and a lot of whitespace on both left and right side. Not sure if it is the cardview that is adding extra padding around or its the RecyclerViewPager.

lsjwzh commented 9 years ago

So ? how did you solve it?