gpt4 book ai didi

搜索框中的Android白色文本

转载 作者:行者123 更新时间:2023-11-29 17:44:06 26 4
gpt4 key购买 nike

见附件

我正在使用带有以下主题的搜索栏(我对 Android 主题知之甚少,但)

如何使键入的文本(在本例中为“Hi Mom”)变为白色?

<style name="_Credential" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="android:editTextBackground">@drawable/credential_edit_text_holo_light</item>
<item name="android:textColorHighlight">#99005984</item>
<item name="android:textSelectHandleLeft">@drawable/credential_text_select_handle_left</item>
<item name="android:textSelectHandleRight">@drawable/credential_text_select_handle_right</item>
<item name="android:textSelectHandle">@drawable/credential_text_select_handle_middle</item>
<item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewCredential</item>
<item name="android:listChoiceIndicatorMultiple">@drawable/credential_btn_check_holo_light</item>
<item name="android:listChoiceIndicatorSingle">@drawable/credential_btn_radio_holo_light</item>
<item name="android:buttonStyle">@style/ButtonCredential</item>
<item name="android:imageButtonStyle">@style/ImageButtonCredential</item>
<item name="android:dropDownSpinnerStyle">@style/SpinnerCredential</item>
<item name="android:progressBarStyleHorizontal">@style/ProgressBarCredential</item>
<item name="android:seekBarStyle">@style/SeekBarCredential</item>
<item name="android:ratingBarStyle">@style/RatingBarCredential</item>
<item name="android:ratingBarStyleIndicator">@style/RatingBarBigCredential</item>
<item name="android:ratingBarStyleSmall">@style/RatingBarSmallCredential</item>
<item name="android:buttonStyleToggle">@style/ToggleCredential</item>
<item name="android:listChoiceBackgroundIndicator">@drawable/credential_list_selector_holo_light</item>
<item name="android:activatedBackgroundIndicator">@drawable/credential_activated_background_holo_light</item>
<item name="android:fastScrollThumbDrawable">@drawable/credential_fastscroll_thumb_holo</item>
</style>

enter image description here

最佳答案

<style name="_Credential" parent="android:Theme.Holo.Light.DarkActionBar">
...
<item name="android:editTextColor">#ffffff</item> <!--Allow to change the editText color-->
...
</style>

关于搜索框中的Android白色文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27594322/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com