when new will release
Wow
There is no definite response, but when I do get to rewriting it, it will be open-sourced in case some people do want to change it according to their uses.
Timelineā¦
In my signature you can see āAnother extension coming in hot shortly ā however that has clearly not been the case. With the new extension comes the introduction to a proper working textfield that is from this extensionā¦ But it is only the outlined type and isnāt even supposed to be dynamically created, I even somehow happened to fix the floating label margin issue. I expect to begin working on Chamaeleon the first week of November and it shouldnāt take long to go from there.
A few answered questions or comments!
@Boban this will no longer be the case , youāll be able to change it. By the way, Iām pretty sure youāre referring to the floating label and the outline?
Possibly December, if not then, my aim is for January. But it will take time for me to figure out how to dynamically generate a layout without it overlaying any others as it does now, which is why youāre advised to use separate arrangements.
I havenāt tested this as I already said, but donāt continue using the filled textfield because it should be the same as other textfield variants.
EDIT: A decision has been made.
Iāve decided to not include the normal or filled variants. What will be left is the outlined variant and I do feel that it was the right decision since design is moving in the direction of borders.
Itās done!
Iāve finished with the new version of Chamaeleon! Iām not sure of who uses this currently, but if you do, Iāve just saved you a whole ton of arrangements with the new one. Before we begin, it does come in a very large size, but if you donāt care then letās begin!
Blocks?
These are from an example project which I included the AIA for.
Configuration structureā¦
You can remove any property and it will still work, but it will stick to defaults for the missing property!
Configure block
{
BOX_CORNER_RADIUS: 4,
MODE: "LIGHT" || "DARK",
SECONDARY_COLOR: "#1A73E9",
TEXT_COLOR: "#000000"
}
āBOX_CORNER_RADIUSā accepts any integer and will be the corner radius of the outlined textfield.
āMODEā is where you use āLIGHTā or āDARKā, the hint color depends on this property. The hint color will be the opposite of the mode so if your background color of the arrangement or screen is light, then set the mode to āLIGHTā so the hint color will be darker than the background.
āSECONDARY_COLORā will default to ā#1A73E9ā, but as an integer. It only accepts integers, it will not convert a HEX to a color-int. This will be the outline color of the textfield when in focus.
āTEXT_COLORā will default to ā#000000ā, but as an integer. It only accepts integers, it will not convert a HEX to a color-int. This will be the text color of the textfield when someone types.
Create block
{
HINT: "Hello world!",
IS_SINGLE_LINE: true || false
}
āHINTā accepts only strings and will be the hint (and floating label) of the outlined textfield.
āIS_SINGLE_LINEā accepts only boolean and is whether the textfield will be 1 line or allow more to be shown when the width in text is reached.
The end
I hope that the block picture made you understand much of what youāre supposed to do! Enjoy
MaterialTextfields.aia (3.1 MB)
io.gitlab.stormifire.textfields.aix (3.1 MB)
Nice! But the extension size
Yes, but it will improve in the next update!
great extension @hammerhai !
I was just trying the new version, but unfortunately, i didnāt get it working It always throws this error:
java.lang.NoSuchMethodError: No virtual method setTextCursorDrawable(Landroid/graphics/drawable/Drawable;)V in class Landroid/support/design/widget/TextInputEditText; or its super classes (declaration of 'android.support.design.widget.TextInputEditText appears in base.apk)
My blocks for testing are:
However, this error is quite clear, setTextCursorDrawable method was added in api 29 ( In the textView class ).Mine is 24 ( Android 7.0 Nougat )
Critical Fix (#24)
This release fixes a critical issue that would prevent the creation of textfields.
io.gitlab.stormifire.textfields.aix (3.1 MB)
The version was not changed, we are still in the month of November.
great and too sized extension great.
but how do u reduce size of aix?
At the moment I have not reduced the size, however that will be fixed shortly!
2020.11.12 ā V2
This release has been incremented and is experimental. Use with caution. If problems occur, please downgrade to 2020-12 after reporting the issue.
This release includes:
- A reduced library size.
- The āmodeā property has moved to the designer. This will not effect current dictionaries used in the Configure method, they will just be useless blocks and there is no need to remove them unless youād like to!
io.gitlab.stormifire.textfields.aix (664.8 KB)
Thanks for reducing size
Is there any way to change the border color? Iāve used the same blocks as yours and changed themes but itās still a grey, barely visible color.
tested on 2020.11.12 and 20220.11.11
is this like a custom textbox extension?
This version I have noticed has issues with the border color.
I can add this if youād like, but I do have to figure out why the border wonāt change colors from 12 days ago.
Sure?
If you can do this it would be fantastic! Since itās not visible on a gradient background.
Itās not a matter of whether I can or canāt. I can, but I weighed the decision of adding it in the beginning because I did not know if people would contrast colors correctly, so instead I based it on whether the background of what it was being place in was light or dark.
@progr It seems I made a mistake on my part, I mustāve forgot that I moved the mode property while testing after building. Iāll add a custom color option for the border!
PLSSSS SAY ME
is this extension like addylins tutorial or u can create other designs with this
but i feel addylins trick is tough so which is best .extension vs tutorial