Currently I have a "customview" named as "MalayDisplay" created for AutoTextSizeLabel.
And I also wanted to used this customview as AutoCompleteEditText.
I already create as below,
Dim malayDisplay as AutoTextSizeLabel.
then I add under it "Dim MalayDisplay as AutoCompleteEditText" (occurred an error)
The reason to create auto text size label is because wanted to run the apps on Tab and phone, so the size of text is auto adjust.
The reason to have AutoCompleteEditText for more convenience to find a words.
What should i do?
Please advice.
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Here1,here2,cover As Label
Dim Imv1 As ImageView
Dim Malaylabel, EngLabel, ArabLabel, title1 As Label
Dim MalayDisplay, EngDisplay, arabDisplay, Diction As AutoTextSizeLabel
End Sub
I don't think that AutoTextSizeLabel will work properly with AutoCompleteEditText as the text is not static.
With that said you can take the code from AutoTextSizeLabel that is responsible for finding the best font size and run it each time that TextChanged fires.