Я новичок в разработке приложений для Android. Я использовал http://android-holo-colors.com/ , чтобы создать тему для моего приложения.Как добавить онлайн-тему андроида в мой проект
Создана тема с именем ei_theme. У меня есть папка с папками папок, макетов и значений. Папка значений состоит из colors_ei_theme, dimens_ei_theme, styles_ei_theme, themes_ei_theme.
Теперь я смущен, что добавить в файл манифеста, чтобы использовать тему. Я предполагаю, что не могу добавить несколько тегов в тег приложения в манифесте. Можете ли вы рассказать мне, как их использовать.
вот содержание styles_ei_theme
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with http://android-holo-colors.com -->
-<resources xmlns:android="http://schemas.android.com/apk/res/android">
-<style parent="android:Widget.Holo.AutoCompleteTextView" name="AutoCompleteTextViewEi_Theme">
<item name="android:dropDownSelector">@drawable/ei_theme_list_selector_holo_dark</item>
<item name="android:background">@drawable/ei_theme_edit_text_holo_dark</item>
</style>
-<style parent="android:Widget.Holo.Button" name="ButtonEi_Theme">
<item name="android:background">@drawable/ei_theme_btn_default_holo_dark</item>
</style>
-<style parent="android:Widget.Holo.ImageButton" name="ImageButtonEi_Theme">
<item name="android:background">@drawable/ei_theme_btn_default_holo_dark</item>
</style>
-<style name="TabEi_Theme">
<item name="android:gravity">center_horizontal</item>
<item name="android:paddingLeft">16dip</item>
<item name="android:paddingRight">16dip</item>
<item name="android:background">@drawable/ei_theme_tab_indicator_holo</item>
<item name="android:layout_width">0dip</item>
<item name="android:layout_weight">1</item>
<item name="android:minWidth">80dip</item>
</style>
-<style name="TabTextEi_Theme">
<item name="android:textColor">#ffffff</item>
<item name="android:textSize">12sp</item>
<item name="android:textStyle">bold</item>
<!-- v14 <item name="android:textAllCaps">true</item> -->
<item name="android:ellipsize">marquee</item>
<item name="android:maxLines">2</item>
<item name="android:maxWidth">180dip</item>
</style>
</resources>
здесь содержание themes_ei_theme
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with http://android-holo-colors.com -->
-<resources xmlns:android="http://schemas.android.com/apk/res/android">
-<style parent="android:Theme.Holo" name="Ei_Theme">
<item name="android:editTextBackground">@drawable/ei_theme_edit_text_holo_dark</item>
<item name="android:textColorHighlight">#9933b5e5</item>
<item name="android:textSelectHandleLeft">@drawable/ei_theme_text_select_handle_left</item>
<item name="android:textSelectHandleRight">@drawable/ei_theme_text_select_handle_right</item>
<item name="android:textSelectHandle">@drawable/ei_theme_text_select_handle_middle</item>
<item name="android:autoCompleteTextViewStyle">@style/AutoCompleteTextViewEi_Theme</item>
<item name="android:listChoiceIndicatorMultiple">@drawable/ei_theme_btn_check_holo_dark</item>
<item name="android:listChoiceIndicatorSingle">@drawable/ei_theme_btn_radio_holo_dark</item>
<item name="android:buttonStyle">@style/ButtonEi_Theme</item>
<item name="android:imageButtonStyle">@style/ImageButtonEi_Theme</item>
</style>
</resources>
Ваш код говорит андроид: тема = «@ стиль/Ei_Theme»> но Ei_theme находится в themes_ei_theme папки. – DAVE
плюс я хочу добавить тему для каждого флажка, радио, выпадающего меню и т. Д. , которые указаны в styles_ei_theme. все они под разными названиями тем, как добавить их все? – DAVE
Вам нужно использовать Ei_Theme. Эта тема содержит все другие настройки тем в ней. – Shahzeb