Hiding native android text fields

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
wmiriye
Posts: 24
Joined: Tue Jun 02, 2020 4:09 am

Hiding native android text fields

Post 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?
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Hiding native android text fields

Post by richmond62 »

the invisible properties of the fields to false
The false of invisible is visible. 8)

Code: Select all

on preOpenCard
    set the visible of field "whatever" to false
end preOpenCard
wmiriye
Posts: 24
Joined: Tue Jun 02, 2020 4:09 am

Re: Hiding native android text fields

Post 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.
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Hiding native android text fields

Post by jacque »

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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Hiding native android text fields

Post by richmond62 »

Did you include this in your standalone build?
-
Screenshot 2020-08-24 at 22.11.13.png
wmiriye
Posts: 24
Joined: Tue Jun 02, 2020 4:09 am

Re: Hiding native android text fields

Post 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.
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Hiding native android text fields

Post 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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply