Git Product home page Git Product logo

Comments (6)

shubham1g5 avatar shubham1g5 commented on August 12, 2024

@ctsims Wondering why can't we use EditorInfo.IME_ACTION_NEXT even if it's long text entry ? I can see it being useful for both long and short entries as user would want to press next at the end of both short and long text entries to move to the next field.

from commcare-android.

ctsims avatar ctsims commented on August 12, 2024

EditorInfo.IME_ACTION_NEXT determines whether there's a soft keyboard button for a "next" button, or whether that same button is instead used for a return key to enter multiple paragraphs.

We don't have a clear way to differentiate user intent there since people use the same text field for both paragraph entry and single line text, so setting EditorInfo.IME_ACTION_NEXT would interfere with their ability to enter newlined data.

from commcare-android.

shubham1g5 avatar shubham1g5 commented on August 12, 2024

Makes sense. Sounds like the right behaviour for us here is to introduce couple appearance attributes "short" and "long" for Text entry and have it default to "long" for now (2.51) while giving user ability to shift to "short" and later shift the default to "short' texts (2.52). We will probably need to make a public post supported by some public facing documentation so that users are available of this option.

from commcare-android.

ctsims avatar ctsims commented on August 12, 2024

Sounds right overall. I'd actually guess that it might be fine to just insert a 'short" and switch HQ to generate "Short" inputs by default, given that it's mostly a nice-to-have for users (v. something that will cause us problems long term). We also may want to build on top of the "Short" concept even more (which would make setting it to be the default even more challenging). The work you did, for instance, that lets you do side-by-side text and value input would function really well with short inputs but might need even more constraint.

from commcare-android.

shubham1g5 avatar shubham1g5 commented on August 12, 2024

it might be fine to just insert a 'short" and switch HQ to generate "Short" inputs by default

Yeah. that sounds right.

We also may want to build on top of the "Short" concept even more (which would make setting it to be the default even more challenging). The work you did, for instance, that lets you do side-by-side text and value input would function really well with short inputs but might need even more constraint.

Interesting. We do have a separate appearance attribute "compact" to achieve side-by-side text and value input for non text entries. We can expand compact for text entries as well and assume underlying text is always of type short when compact is set.

from commcare-android.

ctsims avatar ctsims commented on August 12, 2024

I definitely think that making compact treat any Text Entry widgets underneath as short by default would be great. I bet people would love that for a lot of different forms, especially tablet people.

from commcare-android.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.