Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How set space between images? #117

Open
alexei-28 opened this issue Dec 23, 2019 · 3 comments
Open

How set space between images? #117

alexei-28 opened this issue Dec 23, 2019 · 3 comments

Comments

@alexei-28
Copy link

Android Studio 3.6
implementation 'com.synnapps:carouselview:0.1.4'

Here my activity:

 dataBinding.carouselView.setPageCount(campaignImages.size);
        dataBinding.carouselView.setImageListener(imageListener);

here layout:

<androidx.constraintlayout.widget.ConstraintLayout
                  android:id="@+id/carouselContainer"
                  android:layout_width="0dp"
                  android:layout_height="@dimen/container_height"
                  android:layout_marginTop="@dimen/default_margin"
                  android:layout_marginBottom="@dimen/default_margin"
                  app:layout_constraintBottom_toBottomOf="parent"
                  app:layout_constraintEnd_toEndOf="@+id/profileContainer"
                  app:layout_constraintHorizontal_bias="0.5"
                  app:layout_constraintStart_toStartOf="@+id/profileContainer"
                  app:layout_constraintTop_toBottomOf="@+id/mapContainer">

                  <com.synnapps.carouselview.CarouselView
                      android:id="@+id/carouselView"
                      android:layout_width="0dp"
                      android:layout_height="0dp"
                      app:layout_constraintBottom_toBottomOf="parent"
                      app:layout_constraintEnd_toEndOf="parent"
                      app:layout_constraintStart_toStartOf="parent"
                      app:layout_constraintTop_toTopOf="parent"
                      app:pageColor="#00000000"
                      app:radius="6dp"
                      app:slideInterval="3000"
                      app:strokeColor="#FF777777"
                      app:strokeWidth="1dp" />

              </androidx.constraintlayout.widget.ConstraintLayout>

          </androidx.constraintlayout.widget.ConstraintLayout>

Here my layout:

Here result:

image

As you can see , no spaces between images.

But I need smt like this:

image

Is is possible?

@nguyenvanan18031993
Copy link

Hi,
Do you resolve it, bro?

@alexei-28
Copy link
Author

Hi, Do you resolve it, bro?

No.

@nguyenvanan18031993
Copy link

I'm waiting for solution, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants