Create project by using Login Activity template with minimum SDK API 14 from Android Studio, then customize colorAccent
as pink color in styles.xml:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">#FF4081</item><!-- pink color -->
</style>
LG Nexus 5X able to take effect (Tested with Marshmallow and Nougat):
But no effect in Huawei P9 Lite (Marshmallow):
What should i do to make cursor+pointer color portable ?
Note that colorControlActivated
has the same problem, not only colorAccent
.
[UPDATE]
Tested with Xiaomi Mi 3 and no such problem. android:textCursorDrawable="@drawable/fb"
has the same behaviour for this 3 devices (i.e. only Huawei P9 Lite not working).