A font type won´t be applied to a Text in Beagle on Android 7.
Closed this issue · 3 comments
carlossteinzup commented
Description
A font type won't be applied to a textView created through Beagle on Android 7 (API 24) when loaded from res/font
- the default types from Android works ok, as the type "cursive", but imported types won't be applied for Android 7.
- The imported fonts work on the current APIs above 26.
Steps To Reproduce
You can use the Beagle sample to test this.
- Create an emulator for Android 7 (API 24)
- Copy any font style to res/font
- Open the
styles.xml
file located onres/values/
folder and change theDesignSystem.Text.helloWord
style to the following
<style name="DesignSystem.Text.helloWord" parent="DesignSystem.Text.Default">
<item name="android:textSize">25sp</item>
<item name="android:textColor">@android:color/darker_gray</item>
<item name="android:textStyle">bold</item>
<item name="android:fontFamily">@font/yourfontstyle</item>
</style>
- Run the
Beagle Sample
application - Click on the upper right menu, and select
SAMPLE BFF
- Select
text
and the text result style won't be displayed as on the image below:
Expected Results
The image below shows the expected result
- This result is accomplished on Android 8 and above versions
Code example, screenshot, or link to a repository:
- You can use the Beagle Sample to test this.
carlossteinzup commented
@victorbitencourtzup from the ITI team has reported this Bug issue and will be following this as well
carlossteinzup commented
I found a solution. I'm setting up the appium tests here to check it out and will open a PR to correct it as soon as I confirm the tests.
carlossteinzup commented
done
#1746