Hiding native android text fields
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Hiding native android text fields
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?
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?
-
- Livecode Opensource Backer
- Posts: 9387
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Hiding native android text fields
The false of invisible is visible.the invisible properties of the fields to false
Code: Select all
on preOpenCard
set the visible of field "whatever" to false
end preOpenCard
Re: Hiding native android text fields
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.
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Hiding native android text fields
Are you using the Android field widget or creating a native input field by script using mobileControlCreate?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 9387
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Hiding native android text fields
Did you include this in your standalone build?
-
-
Re: Hiding native android text fields
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Hiding native android text fields
I'll assume you're using the widget. I think we need to see the part of your script that does the hiding.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com