I have been developing an application and when I try it on other devices with different versions of Android, they all appear in different colors.
Install the App on 4 devices each with a different version and screen size different from Android and in 2 of them I get the black letters TextView and the other 2 white.
I put the color white, I do not know why I appear black on other phones and that makes it difficult to see with the background.
Finally I want that mobile themes do not apply to my App and the colors are those that I specify in design.
My style.xml
<resources>
<style name="Theme.AppMaterial" parent="Base.Theme.AppMaterial">
</style>
<style name="Base.Theme.AppMaterial" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowBackground">@color/White</item>
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
</style>
<style name="WindowAnimationTransition">
<item name="android:windowEnterAnimation">@anim/fade_in</item>
<item name="android:windowExitAnimation">@anim/fade_out</item>
</style>
<style name="floatlabelededittext">
<item name="android:textColor">@color/colorAccent</item>
</style>
<style name="Theme.AppMaterial.AppBarOverlay" parent="ThemeOverlay.AppCompat.ActionBar"/>
<style name="Theme.AppMaterial.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>
</resources>
build.gradle
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion '24.0.0 rc1'
defaultConfig {
applicationId "co.com.yogo.biometrico"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
provided 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0-alpha1'
compile 'com.android.support:design:24.0.0-alpha1'
compile 'com.github.florent37:viewanimator:1.0.1@aar'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.2359media:EasyAndroidAnimations:0.8'
}
2 of the devices have Android 5.1.1 but one is Huawei P8 and the other is Samsung A5.
The other 2, one is BLU Studio 5K with Android 4.1.2 and Samsung mini with 4.1.1
I noticed that the color also changes, I put red letters on it, and the device shows them black.