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

Unable to align the text in the center of the box #61

Open
sachin-varshney opened this issue Jun 21, 2019 · 1 comment
Open

Unable to align the text in the center of the box #61

sachin-varshney opened this issue Jun 21, 2019 · 1 comment

Comments

@sachin-varshney
Copy link

No description provided.

@amirmuhsin
Copy link

amirmuhsin commented Dec 7, 2020

Am I missing something? Tried to play with bottomPadding, drawablePadding, pinTextBottomPadding and even includeFontPadding.

   <com.alimuzaffar.lib.pin.PinEntryEditText
                android:id="@+id/etPinEntry"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:layout_gravity="center"
                android:layout_marginTop="@dimen/medium_padding"
                android:cursorVisible="true"
                android:drawablePadding="@dimen/medium_padding"
                android:fontFamily="@font/sf_bold"
                android:imeOptions="actionDone"
                android:importantForAutofill="no"
                android:includeFontPadding="false"
                android:inputType="number"
                android:maxLength="5"
                android:paddingLeft="@dimen/very_small_padding"
                android:paddingRight="@dimen/very_small_padding"
                android:textAllCaps="true"
                android:textColor="@color/blueberry"
                android:textIsSelectable="false"
                android:textSize="28dp"
                app:pinAnimationType="none"
                app:pinBackgroundDrawable="@drawable/selector_pin_bg"
                app:pinBackgroundIsSquare="false"
                app:pinLineStroke="0dp"
                app:pinLineStrokeSelected="0dp"
                app:pinTextBottomPadding="10dp" />

photo_2020-12-07_09-59-15

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