3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Android】EditTextでsetErrorが真っ白になる問題に対応【support:design:22.2.1】

Last updated at Posted at 2015-08-05

com.android.support:design:22.2.1を導入し、
AppTheme(applicationで定義しているtheme)のparentを'Theme.AppCompat.Light.DarkActionBar'にした所、2.x系でEditTextのsetErrorが真っ白になってしまう問題に突き当たった。
(何で背景色白色なのに文字色黒になってないんだよ!!素直にTextInputLayout使えという思し召しか...)

結論だけ書くと、style内で
<item name="android:textColorTertiaryInverse">@color/primary_text_default_material_light</item>
とか書くと解決できそうです。(中身はsetErrorの文字色)

まだソース全然読みきれてないので何とも言いがたいですが、
同じ部分で迷う人が居た時の為に一時的にでも書き残しておきます。。。
(他にどこで利用されてるのか調べねば...)

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?