Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Inputfield, Mobile Input and background color

Discussion in 'Android' started by paradizIsCool, May 6, 2015.

  1. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    177
    Hi,

    I've strange issue with input field using mobile input on android 4.4.2, galaxy S4 (certainly more, but not with nexus 7 5.0.1).

    Background color of native input text is black, such as text, so text is not visible. (see attached file)
    I've tested with fresh simple input text, same issue. I've tested prefab in a new project, no problem background is white.

    How can I change this background color ?

    Builded with unity 4.6.5f1

    No issue with 4.6.3p3 (Native input field looks really different)
     

    Attached Files:

  2. VennInteractiveInc

    VennInteractiveInc

    Joined:
    Nov 7, 2013
    Posts:
    2
    I'm having the same issue. Were you able to resolve this?
     
    Last edited: May 7, 2015
  3. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    177
    No, found nothing. I think I'll change all input to hide mobile input...
     
  4. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    177
    I suspect

    • (690199) - Android: Apply Holo or Material theme explicitly instead of DeviceDefault.
    • (685837) - Android: Apply user theme if set.
    I don't know if it's possible to force DeviceDefault
     
  5. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    177
    Last edited: May 11, 2015
  6. mh114

    mh114

    Joined:
    Nov 17, 2013
    Posts:
    294
    You should file a bug, and mention those two theming related bugs. Clearly the theming change went sour for the input field.
     
  7. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    177
    already filed
     
    mh114 likes this.
  8. Connor_13_

    Connor_13_

    Joined:
    Mar 14, 2014
    Posts:
    40
    What specifically did you put in your manifest?

    I tried adding android:theme="@android:style/Theme.DeviceDefault" to my <application> tag but the result was the same as it was by Unity default

    EDIT: Use android:theme="@android:style/Theme.Holo.Light" and it works
     
    Last edited: Jun 1, 2015
  9. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    177
    @android:style/Theme.NoTitleBar