alphamu / PinEntryEditText

An EditText that looks like a pin entry field. It is highly customisable and even animated text.
Apache License 2.0
670 stars 137 forks source link

PinEntryEditText is transparent :/ #56

Open sahargal opened 5 years ago

sahargal commented 5 years ago
<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 commented 5 years ago

the same here :(

mohammedmans commented 5 years ago

same issue

44sakumi commented 5 years ago

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" />