Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Goosery on April 15, 2013, 05:02:28 PM

Title: Keyboard typing no background.
Post by: Goosery on April 15, 2013, 05:02:28 PM
Hi there,

I have many players report to me lately when they try to input via keyboard while they type they used to have a white background so they can see what they are typing, but now while the type, the background of which they type on is transparent making it hard to read what they are typing.  I myself used many phone and not able to reproduce this, and I figured this is an Android controlled area and NGUI cannot control the keyboard interface, but here's a screenshot I got from the player.  Would you know if there is anything I can do to have the typing area be a whilte background and not transparent?  Thanks!

(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash3/526649_10200507912374237_404998773_n.jpg)
Title: Re: Keyboard typing no background.
Post by: ArenMook on April 15, 2013, 06:29:07 PM
I'm pretty sure this is tied to Android OS itself. Try switching the build target. I target Android 2.3.3 myself most of the time, and it seems to work great.
Title: Re: Keyboard typing no background.
Post by: Goosery on April 19, 2013, 03:03:37 PM
Please see new attachment.

I found out this only happens in tablets because on phones, the input will cover the whole screen and background is white and text is black so easy to read.  For tablet, that blue line in the screenshot in the red circle used to have a white background.. but for some reason lately it has become transparent and text is white, making it very hard to read.

I tried targetting to 2.3.3 still the same. I haven't changed my input code at all, it's an old code that always worked fine.  Any ideas?  thx
Title: Re: Keyboard typing no background.
Post by: ArenMook on April 19, 2013, 11:28:48 PM
I get a proper boxed outline around the input on my tablet with Android 4.2 on it, in an app built targeting Android 2.3.3.
Title: Re: Keyboard typing no background.
Post by: Goosery on April 19, 2013, 11:30:23 PM
does the box holding your typing have white background or transparent?
Title: Re: Keyboard typing no background.
Post by: ArenMook on April 19, 2013, 11:34:08 PM
The text I'm inputting has a white 90% alpha box around it with an outline, and an OK button on the side.
Title: Re: Keyboard typing no background.
Post by: Goosery on April 19, 2013, 11:35:40 PM
Can NGUI control that box's BG color or are we at the mercy of Android? 
Title: Re: Keyboard typing no background.
Post by: ArenMook on April 19, 2013, 11:40:18 PM
I have no idea what controls it.
Title: Re: Keyboard typing no background.
Post by: Goosery on April 19, 2013, 11:41:11 PM
ok thanks.  if I ever find out I'll post it here.
Title: Re: Keyboard typing no background.
Post by: FussenKuh on May 29, 2013, 06:00:14 PM
Just wanted to bump this thread with some additional information...

I'm seeing this same problem in my game on both my Nexus 7 and Galaxy S3 (though, not with some older phones I've tested on).  The interesting thing, however, is that I've only started seeing this problem after updating to Unity 4.1.3 and NGUI 2.6.1.  I was previously using Unity 3.5.7 and NGUI 2.3.something.

Prior to updating these things, I had a proper (i.e. white background) input field box in which a user could see what he/she was typing across all devices that I've tested on. Now, I have a similar transparent mess as seen in the earlier screen shot.  I can't imagine how the NGUI upgrade has anything to do with it, which makes me think that perhaps something in Unity 4.x.x has changed things.

I use the Swiftkey keyboard on my phone/tablet so, just for good measure, I also tried toggled back to using the stock keyboard. I was greeted with the same transparent input field box.