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

PinEntryEditText is transparent :/ #56

Open
sahargal opened this issue Mar 19, 2019 · 3 comments
Open

PinEntryEditText is transparent :/ #56

sahargal opened this issue Mar 19, 2019 · 3 comments

Comments

@sahargal
Copy link

<com.alimuzaffar.lib.pin.PinEntryEditText
    android:id="@+id/number1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="30dp"
    android:layout_marginRight="5dp"
    android:background="@drawable/bg_edit_text_border"
    android:fontFamily="@string/open_sans_hebrew"
    android:gravity="center"
    android:imeOptions="actionNext"
    android:inputType="number"
    android:maxLength="1"
    android:maxLines="1"
    android:digits="12345678"
    android:nextFocusRight="@+id/number2"
    android:textColor="@color/black"
    android:textSize="20sp"
    app:layout_constraintHorizontal_chainStyle="spread"
    app:layout_constraintLeft_toLeftOf="@+id/btn_login"
    app:layout_constraintRight_toLeftOf="@+id/number2"
    app:layout_constraintTop_toBottomOf="@+id/title" />

i check with regular edit text my background is working well but when i am adding your libary everything is transparent

@devabir93
Copy link

the same here :(

@mohammedmans
Copy link

same issue

@44sakumi
Copy link

I missed "android:digits" before, now it worked.Maybe you missed a necessary attribute either.
This is my code:
<com.alimuzaffar.lib.pin.PinEntryEditText
android:id="@+id/code_edit"
style="@style/Roboto_Regular_18_black"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:cursorVisible="false"
android:digits="0123456789ABCDEF"
android:inputType="text"
android:maxLength="6"
android:textIsSelectable="false"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/promt"
app:pinBackgroundDrawable="@drawable/pin_background"
app:pinBackgroundIsSquare="true" />

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

4 participants