Comments (6)
@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.
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.
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.
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.
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.
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)
- For more security spongycastle -> bouncycastle HOT 2
- feature request: allow arbitrarily named string as IntentCallout responses HOT 9
- Move tests to espresso. HOT 3
- Allow the use of a custom Barcode Scanning Application HOT 1
- Resolve instrumentation test flakiness.
- Please update Bouncy Castle HOT 3
- Not able to build commcare android HOT 7
- Fuzzy matching isn't a good fit for some searches
- Replace `ModernHttpRequesterMock` with MockWebServer
- Resolve Strict Mode violations
- Clean up Any references to J2ME settings
- Log usage of `cc-enforce-secure-endpoint` in Analytics
- Passthrough Allow-Listed EXIF properties (GPS specifically) with resized images
- Impossible to make a selection on owner_id in Case Content Provider HOT 2
- Divide By Zero Error in Edge Case with Automatic Image resizing HOT 1
- Improve image capture resizing
- Respect image orientation during resizing HOT 1
- Improve user location feedback in case list maps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commcare-android.