google-developer-training / basic-android-kotlin-compose-training-woof

Apache License 2.0
55 stars 87 forks source link

Material Theming: Android Basics with Compose #81

Closed GabrielVasco13 closed 10 months ago

GabrielVasco13 commented 10 months ago

URL of codelab

https://developer.android.com/codelabs/basic-android-kotlin-compose-material-theming?hl=pt-br&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-3%3Fhl%3Dpt-br%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-material-theming#5

In which task and step of the codelab can this issue be found?

Add Typography

Describe the problem

I can't import font from Google Font into the project, it doesn't recognize it.

Steps to reproduce?

  1. Go to res
  2. Right click on the res -> new -> Android Resource Directory
  3. Select "Resource Type" and change to "values"
  4. Click "ok"
  5. Download the "Montserrat" and "Abril_Fatface" fonts and extract the file
  6. After extracting, select "Montserrat-BlackItalic" and "Montserrat-Regular", then place in the "font" folder
  7. After adding it, you'll see that the file "montserrat-black.ttf" will have a red streak underneath, and if you try to use it, it won't work

Additional information Include screenshots if they would be useful in clarifying the problem. Captura de tela 2024-01-02 165428 Captura de tela 2024-01-02 165332

GabrielVasco13 commented 10 months ago

I ended up making a mistake in the part of importing the source, sorry