30
AndroidでTextViewのfontFamilyを変更する方法
android:fontFamilyAndroidでを変更したいのですが、Androidで定義済みのフォントが表示されません。定義済みのものを選択するにはどうすればよいですか?自分でTypeFaceを定義する必要はありませんが、必要なのは、現在表示されているものとは異なるものだけです。 <TextView android:id="@+id/HeaderText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="52dp" android:gravity="center" android:text="CallerBlocker" android:textSize="40dp" android:fontFamily="Arial" /> 私がそこでやったことは本当にうまくいかないようです!ところでandroid:fontFamily="Arial"、愚かな試みでした!