SwipeStack icon indicating copy to clipboard operation
SwipeStack copied to clipboard

Alignment of deck of cards as Displayed bellow

Open lpraneeth opened this issue 7 years ago • 12 comments

I want my cards to align like this screen2

But my cards are looking like this screenshot_2016-11-10-19-47-03 1

How I can arrange my cards as shown in first pic

lpraneeth avatar Nov 10 '16 14:11 lpraneeth

Can you please share your Layout code, I believe this is due to you need to specify stack_spacing attribute against SwipeStack view. Default value if you don't give it inside your layout xml file is 12dp

For Example use this layout to reduce spacing between stack

<link.fls.swipestack.SwipeStack
        xmlns:swipe="http://schemas.android.com/apk/res-auto"
        android:id="@+id/swipeStack"
        android:layout_width="320dp"
        android:layout_height="240dp"
        swipe:stack_spacing ="6dp"
        android:padding="32dp"/>

aftabsikander avatar Nov 10 '16 19:11 aftabsikander

@aftabsikander I give stack_spacing bro!! still not changed <link.fls.swipestack.SwipeStack android:id="@+id/swipeStack" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/buttonSwipeLeft" android:padding="@dimen/padding_swipestack" app:stack_rotation="0" app:stack_spacing="6dp" app:stack_size="3" />

lpraneeth avatar Nov 11 '16 06:11 lpraneeth

Can you please share you sample project which is having this issue, So that I can reproduce this and help you

aftabsikander avatar Nov 11 '16 08:11 aftabsikander

@aftabsikander where do I have to share!!

lpraneeth avatar Nov 11 '16 08:11 lpraneeth

@lpraneeth Just share it here like a zip folder or you can upload the sample project to github and share the link. Whatever you like

aftabsikander avatar Nov 11 '16 20:11 aftabsikander

https://drive.google.com/file/d/0B0W17asLt9rkTlY2c0xCVFM5ZDg/view?usp=sharing

lpraneeth avatar Nov 14 '16 09:11 lpraneeth

@aftabsikander check the above link I uploaded the zip file

lpraneeth avatar Nov 14 '16 09:11 lpraneeth

@aftabsikander @flschweiger are you there?

lpraneeth avatar Nov 16 '16 06:11 lpraneeth

@lpraneeth Sorry I was away from my development machine, I will look at it soon and post here

aftabsikander avatar Nov 16 '16 13:11 aftabsikander

late comment here: you can try using it with scale_factor

<link.fls.swipestack.SwipeStack
  android:id="@+id/swipeStack"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_above="@+id/buttonSwipeLeft"
  android:padding="@dimen/padding_swipestack"
  app:scale_factor="0.95"
  app:stack_spacing="12dp"
  app:stack_rotation="0"
  app:swipe_rotation="10" />

mudar avatar Feb 16 '17 15:02 mudar

You have to set app:stack_rotation="0" within the <link.fls.swipestack.SwipeStack> layout. When the stack rotation is set to 0, the difference in angles between the top card and card beneath is becomes 0 so they end up stacked exactly on top of each other. Also set app:stack_spacing to a appropriate value by experimenting on the emulator. I set mine to app:stack_spacing="24dp".

ahnafnafee avatar Mar 28 '19 03:03 ahnafnafee

Did anyone found the solution for this as I am having the same issue.

saini95 avatar Jul 04 '19 08:07 saini95