0
を使用して遮断:私はこれのTextViewを使用する場合カスタムTextViewには、新しいフォントを追加するために、私はカスタムのTextViewを作成wrap_content
public class CustomTextView extends TextView{
public CustomTextView(Context context, AttributeSet attrs, int defStyle){
super(context, attrs, defStyle);
setTypeface(SplashActivity.SECRET_CODE_TYPEFACE, Typeface.NORMAL);
}
public CustomTextView(Context context, AttributeSet attrs){
super(context, attrs);
setTypeface(SplashActivity.SECRET_CODE_TYPEFACE, Typeface.NORMAL);
}
public CustomTextView(Context context){
super(context);
setTypeface(SplashActivity.SECRET_CODE_TYPEFACE, Typeface.NORMAL);
}
}
<com.whereisthemonkey.sqlsheetmanager.Graphics.CustomTextView
android:layout_width="match_parent"
android:text="@string/title"
android:textSize="56sp"
android:layout_height="wrap_content"
android:gravity="center" />
ありがとうございます。パディングボトムとパディングトップを使用するとさらに効果的です –