【发布时间】:2016-09-26 21:03:15
【问题描述】:
使用 Login Activity 模板和 Android Studio 的 minimum SDK API 14 创建项目,然后在 styles.xml 中将 colorAccent 自定义为粉色强>:
<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>
我应该怎么做才能使光标+指针颜色可移植?
注意colorControlActivated有同样的问题,不仅仅是colorAccent。
[更新]
用小米米3测试,没有这个问题。 android:textCursorDrawable="@drawable/fb" 对于这 3 台设备具有相同的行为(即只有 Huawei P9 Lite 不工作)。
【问题讨论】:
标签: android android-edittext android-styles android-textinputlayout huawei-mobile-services