Coder Social home page Coder Social logo

Comments (7)

ChaseFlorell avatar ChaseFlorell commented on August 20, 2024 1

@14skywalker you can actually do that now by first measuring the length of the text and adjusting the HeightRequest when the height changes. For added pizazz, I would use an Animation to adjust the height.

Personally I would create a Behavior<Editor> that watches for TextChanged. Whenever the text changes, measure the new text and re-animate the height.

from xfx.controls.

ChaseFlorell avatar ChaseFlorell commented on August 20, 2024 1

Yes that's correct. We can do the editor sizing now using a behavior. The floated labels would need implementing.

from xfx.controls.

ChaseFlorell avatar ChaseFlorell commented on August 20, 2024

@14skywalker I like the idea. Are you simply looking for an Editor with floated labels and an error message, or do you envision more?

from xfx.controls.

14skywalker avatar 14skywalker commented on August 20, 2024

Hi @ChaseFlorell, interesting that you ask. We were also looking for an editor that would increase in height when needed. Like this: https://storage.googleapis.com/material-design/publish/material_v_11/assets/0B5ZSepuCX1xOVEhXVDltQzgzQzA/TextFields-MultiLine-Long-01.mp4

from xfx.controls.

14skywalker avatar 14skywalker commented on August 20, 2024

Thanks @ChaseFlorell, This would mean that the XfxEditor would only add the possibility to use new lines in the input? That is something we can live without for now.

from xfx.controls.

14skywalker avatar 14skywalker commented on August 20, 2024

I now see that with "you can do that now" you mean with the Editor (not currently in combination with a floating label). Meaning: We still would welcome an XfxEditor.

from xfx.controls.

14skywalker avatar 14skywalker commented on August 20, 2024

I did make a start with an XfxEditor and Android renderer, but I could not make the EditorEditText inside the TextInputLayout to use more space than one line. By the way, the EditorEditText is more protected than the EditText that is used by the XfxEntry on android. I needed reflection to get to the constructor. Maybe there is a better way... So, for what it is worth:

XfxEditor.cs
XfxEditorRenderer.cs

from xfx.controls.

Related Issues (20)

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.