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 to change SquarePinField size #50

Open
Miteshmakwana73 opened this issue May 25, 2021 · 0 comments
Open

How to change SquarePinField size #50

Miteshmakwana73 opened this issue May 25, 2021 · 0 comments

Comments

@Miteshmakwana73
Copy link

Miteshmakwana73 commented May 25, 2021

currently it's showing a square box but i want to show a verticle square box with more padding at top and bottom and less at start, end how can i achieve this

this is what i done so far

<com.poovam.pinedittextfield.SquarePinField
            android:id="@+id/otpedt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            style="@style/graphikRegular"
            android:layout_marginStart="@dimen/_12sdp"
            android:layout_marginTop="@dimen/_20sdp"
            android:layout_marginEnd="@dimen/_16sdp"
            android:inputType="number"
            android:textColor="@color/white"
            app:isCustomBackground="true"
            android:textSize="@dimen/_13ssp"
            app:cornerRadius="@dimen/_3sdp"
            app:distanceInBetween="@dimen/_10sdp"
            app:fieldBgColor="@color/gray_otp"
            app:fieldColor="@color/gray_otp"
            app:highlightColor="@color/red"
            app:highlightType="currentField"
            app:layout_constraintEnd_toEndOf="@id/guideline2"
            app:layout_constraintStart_toStartOf="@id/guideline"
            app:layout_constraintTop_toBottomOf="@+id/tvVerificationDetail"
            app:lineThickness="1dp"
            app:noOfFields="4" />

Capture

my requirement is to show edit text like this. how can i adjust top, bottom,start, end padding or how can i implement this.

how can i set the height and width of each box.

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

1 participant