LoginSignup
1
1

More than 5 years have passed since last update.

PickerRowのフォントカラーを変更する

Last updated at Posted at 2014-11-21

PickerRowのフォントカラーを白から黒に変更するのが少し面倒だったからメモとして
公式ドキュメントに英語ですが書いてあります.

  1. http://android-holo-colors.com/ へ移動

  2. Theme Nameを決める
    2.1. 今回私はpicker_textにしました

  3. Colorを指定する
    3.1. 黒を指定

  4. Min SDK Versionを指定する

  5. Compatibilityをを指定する
    5.1. Titanium SDKが3.3.X以降の場合: APPCOMPAT
    5.2. Titanium SDKが3.2.X以前の場合: NONE

  6. Themeを指定する
    6.1. LIGHTを指定

  7. テーマを変更したいWidget(EditTextなど)をYesにする
    7.1. 「Switch」「Switch Jellybean」「Drawer」は必ずNoにすること
    7.2. Pickerの場合はSpinnerをYesに

  8. DOWNLOAD .ZIPボタンをクリックしダウンロード

  9. ダウンロードしたZIPファイルを解凍

  10. 中にあるresフォルダの中身をplatform/android直下にコピー

  11. tiapp.xmlを修正

tiapp.xml
<android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
        <application android:theme="@style/picker_text"/> <!-- 手順2で決めた名前 -->
        <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="19"/>
    </manifest>
</android>

以上の手順を行うと
変更前

変更後
になります.
(背景を白にすると白文字が見えないため背景を緑にしています)

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1