Advertisement
shelkovv

Untitled

Aug 21st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. // It doesn't work
  2. <androidx.appcompat.widget.AppCompatEditText
  3. android:id="@+id/newEmail"
  4. style="@style/MainAppTheme.Pax.Date"
  5. android:layout_width="match_parent"
  6. android:layout_height="44dp"
  7. android:background="@color/transparent"
  8. android:digits="aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ1234567890@._-+%"
  9. android:focusable="true"
  10. android:focusableInTouchMode="true"
  11. android:imeOptions="actionNext"
  12. android:inputType="textNoSuggestions|textVisiblePassword"
  13. android:nextFocusUp="@+id/oldEmail"
  14. android:nextFocusDown="@+id/confirmNewEmail"
  15. android:onFocusChange="@{data.onFieldFocusChanged}"
  16. android:onTextChanged="@{(text, start, before, count) -> data.onNewEmailTextChanged(text, start, before, count)}"
  17. android:text="@{data.newEmail}"
  18. android:textAllCaps="true"
  19. android:textColor="@color/ocean_blue"
  20. tools:ignore="RtlHardcoded,RtlSymmetry" />
  21. // It works fine
  22. <androidx.appcompat.widget.AppCompatEditText
  23. android:id="@+id/panoramaCorporateCardNumber"
  24. style="@style/MainAppTheme.Pax.Date"
  25. android:layout_width="match_parent"
  26. android:layout_height="44dp"
  27. android:background="@color/transparent"
  28. android:focusable="true"
  29. android:focusableInTouchMode="true"
  30. android:imeOptions="actionSend"
  31. android:inputType="number"
  32. android:nextFocusUp="@+id/panoramaCardNumber"
  33. android:textColor="@color/ocean_blue"
  34. android:textColorHint="@color/pinkish_grey"
  35. android:onTextChanged="@{(text, start, before, count) -> pax.setCorporateCardNumber(text.toString())}"
  36. tools:ignore="RtlHardcoded">
  37. </androidx.appcompat.widget.AppCompatEditText>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement