質問編集履歴
2
解決案の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,3 +57,13 @@
|
|
57
57
|
</LinearLayout>
|
58
58
|
|
59
59
|
```
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
コードでの指定は有効でした。
|
64
|
+
|
65
|
+
Switch switch1 = findViewById(R.id.switch);
|
66
|
+
|
67
|
+
Typeface typeface = ResourcesCompat.getFont(this,R.asset);
|
68
|
+
|
69
|
+
switch1.setTypeface(typeface);
|
1
再現したandroidバージョンを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
Switchへのフォントの指定
|
1
|
+
androidのSwitchコンポーネントへのフォントを変更したいのですが、指定しても変更されていません。
|
2
2
|
|
3
|
-
TextViewなど他のコンポーネント
|
3
|
+
TextViewなど他のコンポーネントでは指定は効いています。
|
4
4
|
|
5
5
|
どこがおかしいのかご指摘いただけると幸いです。
|
6
6
|
|
7
|
-
androidのバージョンは7.0です。
|
7
|
+
androidのバージョンは5.0,6.0,7.0です。
|
8
8
|
|
9
9
|
|
10
10
|
|