0
在Java Swing中,我可以相對更改Font
的屬性,而無需知道其實際屬性。例如,我可以說,我想讓此標籤的字體比當前大小小1個像素,而不必知道當前大小。相對更改TextView的字體屬性
private void initComponents() {
jLabel12.setFont(jLabel12.getFont().deriveFont(
jLabel12.getFont().getSize()-1f));
}
在Android中,我如何才能實現類似的東西TextView
?