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

Create the widget for date time question type #206

Merged
merged 2 commits into from
Feb 2, 2021
Merged

Conversation

jingtang10
Copy link
Collaborator

Closes #173

}

@Test
fun shouldSetTextViewText() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename this test to shouldSetTextInputLayoutHint in all the tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

dateInputEditText = itemView.findViewById(R.id.dateInputEditText)
// Disable direct text input to only allow input from the date picker dialog
dateInputEditText.keyListener = null
dateInputEditText.setOnFocusChangeListener { _: View, hasFocus: Boolean ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User experience :

  1. Open the date widget
  2. Select date
  3. Press ok
  4. Try to open the date widget again. It Does not open
    If some one makes a mistake entering the date/time, the have to enter the time/date and then only then are they able to reopen the date widget. Not sure why this is happening.

Also Looks like TextInputLayout remains highlighted if you click on a radio button / check box.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

created #208

@jingtang10 jingtang10 requested a review from joiskash February 2, 2021 09:20
@jingtang10 jingtang10 merged commit 147bfcd into master Feb 2, 2021
@jingtang10 jingtang10 deleted the jt/sdc-date-time branch February 2, 2021 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Support DATE_TIME question type in the sdc library
2 participants