Android Question Edittext just show 1 line

hibrid0

Active Member
Licensed User
Longtime User
Hi guys, I have a many edittext with multine check.
And just is visible 1 line at time with an scrolling text.
I have every edtitext with Edittext.wrap= true.

B4X:
    txt_1.Background=functions.BackGround(Colors.White)
    txt_1.InputType = Bit.Or(0x00004000, 0x00000001)
    txt_1.TextColor=Colors.Black
    functions.ViewSettins1.setCursorDrawableColor(txt_1, Colors.Black)
    txt_1.Wrap = True
 

Attachments

  • bug_or_feature_editext.png
    bug_or_feature_editext.png
    12.6 KB · Views: 236
Last edited:

hibrid0

Active Member
Licensed User
Longtime User
You need to place whole code, which creates a textbox. Maybe you set very big padding.
BTW, which relation txt_causa has to txt_1 ?
Hi thanks for your answers.
I create the edittext with the designer.
Now I have :
B4X:
   txt_1.Background=functions.BackGround(Colors.White)
    txt_1.InputType = Bit.Or(0x00004000, 0x00000001)
    txt_1.TextColor=Colors.Black
    functions.ViewSettins1.setCursorDrawableColor(txt_1, Colors.Black)
    txt_1.Wrap = True
    txt_1.Padding = Array As Int (0dip,0dip,0dip,0dip)

And continue showing with 1 line.
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
txt_1.SingleLine=False
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
You changed the ImputType in code.
I would suggest you add the line again
B4X:
txt_1.SingleLine=False
at the end of your code.
I had this same issue and it got changed when I changed the InputType in code.
 
Upvote 0

hibrid0

Active Member
Licensed User
Longtime User
You changed the ImputType in code.
I would suggest you add the line again
B4X:
txt_1.SingleLine=False
at the end of your code.
I had this same issue and it got changed when I changed the InputType in code.
I tested and now is working.
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
Great!
I don't know if it is a bug in B4A. Maybe?

Glad you got it working!
 
Upvote 0
Top