Tag: android typeface

以编程方式在Kotlin中定制TypeFace

如何设置任何TextView字体。 使用java我们做这样的事情 TextView tv = (TextView) findViewById(R.id.custom); tv.setTypeface(null, Typeface.BOLD); 如何在使用kotlin时执行此类操作。 这将是在kotlin中做到这一点的有效方法? 有没有更好的方式提供kotlin? holder.itemView.title.typeface = ?

以编程方式在Kotlin中定制TypeFace

如何设置任何TextView字体。 使用java我们做这样的事情 TextView tv = (TextView) findViewById(R.id.custom); tv.setTypeface(null, Typeface.BOLD); 如何在使用kotlin时执行此类操作。 这将是在kotlin中做到这一点的有效方法? 有没有更好的方式提供kotlin? holder.itemView.title.typeface = ?