๋ฐ์ํ
Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- RESTful API
- ์น๋์๋ณด๋ ์ ์
- ์คํธ๋ฆผ๋ฆฟ ๊ธฐ๋ณธ
- ์๋ฐ๊ธฐ์ด
- ์๋ฐ์คํฌ๋ฆฝํธ ๊ณต๋ถ
- Flutter
- ์๋๋ก์ด๋ ์ฑ ๊ฐ๋ฐ
- db
- ํ๋ค์ค๊ณต๋ถ
- ์๋ฐ์ด๋ณด
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- Pandas
- ํ์ด์ฌ
- ์น๋์๋ณด๋ ๊ธฐ์ด
- java
- ์๋ฐํ๋ก๊ทธ๋๋ฐ
- ์๋ฐ
- ์๋๋ก์ด๋ ์คํ๋์ค
- MySQL
- streamlit
- Streamlit๊ธฐ์ด
- ํ์ด์ฌ๊ณต๋ถ
- ์คํธ๋ฆผ๋ฆฟ
- ์๋ฐ์คํฌ๋ฆฝํธ
- Android
- ์๋ฐ๊ณต๋ถ
- JavaScript
- ํ๋ค์ค
- REACT
- serverless
Archives
- Today
- Total
ruriruriya
[Android] ์๋๋ก์ด๋ - ๋ด๊ฐ ์ํ๋ ํฐํธ ์ ์ฉํ๋ ๋ฐฉ๋ฒ(feat. fontFamily) ๋ณธ๋ฌธ
๐คAndroid/Java
[Android] ์๋๋ก์ด๋ - ๋ด๊ฐ ์ํ๋ ํฐํธ ์ ์ฉํ๋ ๋ฐฉ๋ฒ(feat. fontFamily)
๋ฃจ๋ฆฌ์ผใ 2024. 2. 4. 22:41๋ฐ์ํ

์๋๋ก์ด๋ ์ฑ ๊ฐ๋ฐ ์ ๋ง์์ ๋๋ ํฐํธ๋ฅผ ์ ์ฉ์์ผ ์ข๋ ๋น์ฃผ์ผ์ ์ผ๋ก ๋ณด์ด๋๋ก ํด๋ณด์.
1. res - fontํด๋
- fontํด๋๋ฅผ ์์ฑ

- ๋ณต์ฌ(ctrl+ c)ํด์ fontํด๋๋ฅผ ์ ํ ํ ๋ถ์ฌ๋ฃ๊ธฐ(ctrl+v)๋ฅผ ํด์ค๋ค.

- ๊ทธ๋ฆฌ๊ณ ํ์ผ์ ์ค๋ฅธ์ชฝ ๋ง์ฐ์ค๋ฅผ ๋๋ฌ refactor -rename์ผ๋ก
๋ชจ๋ ์๋ฌธ์๋ก ๋ฐ๊ฟ์ค๋ค.

2. ํด๋น xml
fontFamily๋ก ํฐํธํด๋์ ์๋ ํด๋๋ฅผ ์ง์ ํ์ฌ ์ ์ฉํ ์ ์๋ค.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="๊ธฐ์กด ๊ธ์์ฒด"
android:textSize="34sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.387" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/seolleimcool"
android:text="ํฐํธ ์ ์ฉ"
android:textColor="#2196F3"
android:textSize="34sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.48" />
</androidx.constraintlayout.widget.ConstraintLayout>
3. ์ ์ฉํ๋ฉด
์ด๋ ๊ฒ ์ํ๋ ํฐํธ๋ฅผ ์ ์ฉํ ์ ์๋ค!

๋ฐ์ํ