simple-android icon indicating copy to clipboard operation
simple-android copied to clipboard

Build a custom view to enable fast entry of blood pressures

Open pratul opened this issue 5 years ago • 12 comments

In apps like Cardio Journal, when you enter a new BP, a "custom keyboard" shows up that big easy-to-tap buttons, no extra keys, and rules to support only valid blood pressure values. We're currently using the standard Android keyboard and a custom view will definitely speed up entering BPs.

pratul avatar Mar 11 '19 10:03 pratul

@pratul I have some experience with building keyboards at my work and this shouldn't be too hard. Do you guys have a rough idea of what's keys should be there?

Or

Have you guys thought about using a spinner with valid values for blood pressure?

Something like this: https://github.com/DarkionAvey/SwipeSpinnerWidget

The spinner could be set to default 120/80 or the last reading of the patient to make it easier for the user to update. In this way, you don't need to worry about validating the user entry and also speed up entering BPs as BPs typically shouldn't change far different from last reading/normal(120/80).

subbramanil avatar May 17 '19 04:05 subbramanil

Thanks for offering to help @subbramanil That's so cool. Our colleague @akshayverma1 is working on a design spec for you and will post it here.

We've considered a spinner as you suggest, but it will be a bit slower than a large optimized numeric keyboard — consider that for new enrolled patients, there will be no baseline BP to start from. And, with some muscle memory, typing 5 digits quickly can be very very fast.

Thanks again, we should have a spec to you soon!

dburka avatar May 17 '19 11:05 dburka

Hi @subbramanil, thank you for extending your help, we really appreciate it!

Here are the specs:

  • The keyboard in context: https://zpl.io/Vxl4JxX
  • Button states: https://zpl.io/a87dAw6

Please do let me know if there’s anything else you might need. 🙂

akshayverma1 avatar May 22 '19 09:05 akshayverma1

Thank you @akshayverma1

Can you change the sharing settings in Zeplin?

Seems like I need to be invited to the project to view the files.

subbramanil avatar May 22 '19 20:05 subbramanil

Hey @subbramanil, sorry about that. I have moved the mockups to Figma and they should now be accessible to you.

  • The keyboard in context: https://www.figma.com/file/fQ3Kk8sC656CH5H9le5jRymA/Simple-UI-v1.10?node-id=0%3A10521
  • Button states: https://www.figma.com/file/fQ3Kk8sC656CH5H9le5jRymA/Simple-UI-v1.10?node-id=0%3A18680

akshayverma1 avatar May 23 '19 12:05 akshayverma1

@subbramanil Let me know if there’s anything else I could help you with :)

akshayverma1 avatar May 30 '19 14:05 akshayverma1

@subbramanil Just following up on this. We really appreciate your offer to help with this! Anything we can assist with?

dburka avatar Jun 17 '19 12:06 dburka

@akshayverma1 @dburka Sorry Guys for the delay in the update.

Based on the prototype shared, I built a sample keyboard by modifying one of my old projects. Have few minor challenges regarding the style of the buttons, but should be able to complete it soon.

Since It's only a keyboard, I have been modifying my existing project code. I haven't tried to run the "simple-android" app yet. Will ask for help if I ran into any issues.

subbramanil avatar Jun 17 '19 20:06 subbramanil

Hey @akshayverma1 The links for the mock ups are not working, if you don't mind could you please share those again. I am interested to give it a try.

rakesh-barik avatar Dec 19 '19 16:12 rakesh-barik

Thanks for offering to help with this, @rakesh-barik. Here are the links:

  • Custom keyboard: https://www.figma.com/file/kONxBLSXwcQDnV7ya4hIXA/Simple-App?node-id=0%3A16774
  • Button states: https://www.figma.com/file/kONxBLSXwcQDnV7ya4hIXA/Simple-App?node-id=0%3A16814

akshayverma1 avatar Dec 20 '19 08:12 akshayverma1

Hi @akshayverma1, is this custom view improvement still open? I was thinking of taking a look at it if it's still required

benryder1988 avatar Sep 30 '20 08:09 benryder1988

Hey @benryder1988, thanks for asking! I’m not sure, but maybe @dburka or @vinaysshenoy might know?

akshayverma1 avatar Sep 30 '20 09:09 akshayverma1