Page 1 of 1
Hiding native android text fields
Posted: Sat Aug 22, 2020 10:46 pm
by wmiriye
I have been reading up on android native text/input fields and see that they float above all the other obects in my app.
I have some objects floating above them. When testing on my android phone, the fields are not hidden under but are visible on top.
I try making the invisible properties of the fields to false in my script on "preOpen" card, but fields are still showing up. What is the best solution for this? How do I hide these fields when I don't need to see them yet?
Re: Hiding native android text fields
Posted: Sun Aug 23, 2020 7:56 am
by richmond62
the invisible properties of the fields to false
The
false of
invisible is
visible.
Code: Select all
on preOpenCard
set the visible of field "whatever" to false
end preOpenCard
Re: Hiding native android text fields
Posted: Sun Aug 23, 2020 11:29 pm
by wmiriye
Thanks, I did that. For the standard fields, that works but seems like it's not working for android native fields once deployed and tested in my android phone.
Re: Hiding native android text fields
Posted: Mon Aug 24, 2020 5:00 pm
by jacque
Are you using the Android field widget or creating a native input field by script using mobileControlCreate?
Re: Hiding native android text fields
Posted: Mon Aug 24, 2020 8:13 pm
by richmond62
Did you include this in your standalone build?
-
Re: Hiding native android text fields
Posted: Thu Aug 27, 2020 12:57 am
by wmiriye
yes I did. Also, I noticed that when the app first loads on my phone when testing, the field shows up. When I go to a different card and then back to that page, the field is hidden for no apparent reason.
I have written in my script that the only time, the field should be hidden is when a user clicks on the menu button, which displays
the group menu and hides the native around fields on the card/page.
Since I included the fields in the application setup as you pointed out, it is still not showing or hiding as expected.
Re: Hiding native android text fields
Posted: Thu Aug 27, 2020 5:00 pm
by jacque
I'll assume you're using the widget. I think we need to see the part of your script that does the hiding.