Android Question FloatLabeledEditText1's height dinamically

Leni Berry

Active Member
Licensed User
Longtime User
how to change DSFloatLabelEditText's height dinamically when text height increase in multiline mode....?
 
Last edited:

Leni Berry

Active Member
Licensed User
Longtime User
error like this below,

B4X:
B4A version: 6.80
Parsing code.    (0.30s)
Compiling code.    (1.06s)
Compiling layouts code.    (0.19s)
Organizing libraries.    (0.00s)
Generating R file.    (3.11s)
Compiling generated Java code.    Error
B4A line: 4011
Log(su.MeasureMultilineTextHeight(txtpesan,txtpes
javac 1.8.0_111
src\com\lionsclubs\launcher\main.java:7360: error: incompatible types: FloatlabelEditTextWrapper.InnerTextInputLayout cannot be converted to TextView
anywheresoftware.b4a.keywords.Common.Log(BA.NumberToString(_su.MeasureMultilineTextHeight((android.widget.TextView)(mostCurrent._txtpesan.getObject()),BA.ObjectToCharSequence(mostCurrent._txtpesan.getText()))));

B4X:
sub globals
Private txtpesan As DSFloatLabelEditText
end sub

Sub txtpesan_TextChanged (Old As String, New As String)
    Dim su As StringUtils
    Log(su.MeasureMultilineTextHeight(txtpesan,txtpesan.Text))
End Sub
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top