【问题标题】:android-how to change customSpinner typeface [duplicate]android-如何更改 customSpinner 字体[重复]
【发布时间】:2014-05-29 20:54:52
【问题描述】:

这就是我制作微调器的方法,我想更改字体。 我正在使用包含 textView 的自定义布局。

我该怎么做?

ArrayAdapter<String> SpinnerAdapter = new ArrayAdapter<String>(Spots.this, R.layout.spinner_item,states);
Spin1 = (Spinner) findViewById(R.id.spinner1); 

谢谢

【问题讨论】:

    标签: android android-spinner android-fonts android-typeface


    【解决方案1】:

    int spinner_item.xml,可以在 textview 元素中设置 android:typeface 属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-03
      • 1970-01-01
      • 1970-01-01
      • 2013-03-17
      • 2015-08-09
      • 1970-01-01
      • 1970-01-01
      • 2015-09-22
      相关资源
      最近更新 更多