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

Text is invisible on some devices #62

Open
1 task done
ildar2 opened this issue Apr 1, 2021 · 2 comments
Open
1 task done

Text is invisible on some devices #62

ildar2 opened this issue Apr 1, 2021 · 2 comments

Comments

@ildar2
Copy link

ildar2 commented Apr 1, 2021

  • Bug report.
Info:
  • PinView version: 1.4.4
  • Device OS version: android 11
  • Device Name:Samsung S10E
Description:

it seems that user is able to proceed, but digits are not shown, which is undesirable
PinView is in a RecyclerView, code is below.
got a video:

t_video5415848847089863359.mp4
class BmgPinView(
    val pin: String,
    val callback: (String) -> Unit,
) : DisplayDiffItem(R.layout.item_bmg_pinview, "bmg_pin", "") {

    class ViewHolder(view: View) : DisplayViewHolder<BmgPinView>(view) {

        override fun bind(item: BmgPinView) {
            pin_view.setText(item.pin)
            pin_view.doAfterTextChanged {
                item.callback(it)
            }
        }
    }
}
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="@dimen/activity_horizontal_margin"
    android:layout_marginTop="16dp">

    <com.chaos.view.PinView
        android:id="@+id/pin_view"
        style="@style/PinWidget.PinView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:cursorVisible="true"
        android:imeOptions="actionDone"
        android:inputType="number"
        android:paddingTop="20dp"
        android:paddingBottom="10dp"
        android:textSize="16sp"
        app:itemCount="4"
        app:itemHeight="65dp"
        app:itemRadius="15dp"
        app:itemWidth="65dp"
        app:lineColor="@color/defaultBg"
        tools:text="1234" />

</FrameLayout>
@luckcoolla
Copy link

@ildar2
Is something changes if you provide textColor attribute?

@Zulqurnain
Copy link

This is serious issue !!! it's occurring on latest version

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

3 participants