Open hafiz013 opened 5 years ago
@hafiz013 did you get the solution of this?
My solution was:
disabling forceKeyboard
app:forceKeyboard="true"
Then focusing pinView manually
val view = pinView.requestPinEntryFocus() as? EditText
Handler().postDelayed({
if (view.requestFocus()) {
val imm = context?.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager?
imm?.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT)
}
}, 500)
below here sample code input type number but in keyboard still has text
<com.goodiebag.pinview.Pinview android:id="@+id/pinview1" android:layout_width="0dp" android:layout_height="wrap_content" android:background="@drawable/bg_tag_rect" android:layout_marginLeft="35dp" android:layout_marginRight="35dp" android:layout_marginTop="20dp" app:cursorVisible="false" app:hint="" app:pinBackground="@drawable/bg_box_tag" app:inputType="number" app:forceKeyboard="true" app:password="false" app:pinHeight="28dp" app:pinLength="6" app:pinWidth="28dp" app:layout_constraintTop_toBottomOf="@+id/lbl2" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/>
Android 9 api 28 honor 8 pro