【发布时间】:2017-10-11 03:15:24
【问题描述】:
我想要 react-native 选择器上的样式字体大小和字体系列。我已经在原生 android 上设置了自定义样式。但是在我再次构建 apk 之后,它仍然是相同的字体。
我在 style.xml 上的代码
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:spinnerItemStyle">@style/SpinnerItem</item>
</style>
<style name="SpinnerItem" parent="Theme.AppCompat.Light.NoActionBar">>
<item name="android:fontFamily">CenturyGothicBold</item>
<item name="android:textSize">16dp</item>
</style>
</resources>
【问题讨论】:
-
你找到解决办法了吗?
标签: android react-native react-native-android