Why does my "Textappearence" and my "Textcolor" not work on some Android devices?

Asked

Viewed 66 times

1

I am developing an app and obviously it contains many textViews. I noticed that when installing my app on some devices, more specifically on MOTO G2, I noticed that my textViews get weird and does not present the expected layout.

For a better understanding, see an example of the code I made for a textView in xml.

<TextView
    android:id="@+id/txtExemplo"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textColor="@color/azul"
 android:textAppearence="@style/Base.TextAppearance.AppCompat.Headline"
    android:text="Exemplo TextView"/>

That is, I define a Style and a color, but specifically in the Moto G2 these properties do not apply. But why?

I don’t have an image to show how the result looks, but I will try to describe:

It has a black border and the inner lining is white. As if it were hollow.

2 answers

2

The problem may be in the device operating system. This is because, the device MOTO G2 has a user registration functionality for system interaction, as well as on Pcs with Windows installed that allows you to configure a specific user to work on the computer. The problem is precisely there because when I am in the "owner" user the problem of rendering colors and styles occurs, but when I enter another registered account, the problem disappears. I noticed that it is not only in my application that this is happening but with any other installed. In conclusion, I say that the problem is precisely in the operating system of android but I do not know why this. Since there’s nothing wrong with my app, I won’t delve into it, but if anyone knows, then leave a note.

  • There is also, in accessibility, an option of "Text in high contrast" which adds black borders to the text, I cannot confirm if it replaces the colors

0

  • It is not working friend. I have found that the problem happens precisely in the "textColor". I do not understand why but on the bike G2 api 23 does not render correctly the color.

  • Thanks more for your opinion;

  • Even you removing the style attribute keeps getting different ?

  • Yes.... But I managed to solve the problem in part. Let me explain further: The G2 motorcycle device has a user registration functionality for system interaction, as well as on Windows Pcs installed that allows you to configure a specific user. The problem is right there... When I am on the "priority" user this problem occurs, but when I enter with another user, strangely the problem is fixed. I then believe that the problem is in the android operating system of the device.

  • priority not.... I meant owner.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.