I recently got my Mudita Kompakt and wanted to start developing for it (first time android developer). I wanted to go the kotlin + MMD route. However I have some trouble really mimicing some of the controls I see in apps like the phone app like text boxes. The component overview does not describe them at all (Mudita Mindful Design)
However there is a TextFieldMMD, but when I do something like this
and looks really different than the when adding a contact in the phone app. Does anyone know how to get a similar style for textboxes without transitiions and a label that always sits above the text input?
TextFieldMMD inherits Material 3’s floating label (which we don’t want) and there’s no parameter to pin it. But if you leave label = null and stack a plain TextMMD above the field yourself, the label stays put and your placeholder shows while the field is empty. Here’s a small wrapper that does that:
@chadp thanks for the snippet. Yeah I guess that would work! The only thing I may lose this way is a press on the label does not put focus to the input. I guess this can be coded as well, but I am wondering this is not possible with the eInk optimized component to begin with?