Android 安卓:主题变化太大了

Android 安卓:主题变化太大了,android,styles,themes,titlebar,Android,Styles,Themes,Titlebar,我需要更改我的应用程序标题背景色。我可以根据自己的想法来做这件事。但这不仅改变了我的标题,也改变了我的整个应用程序(编辑文本、按钮、微调器)。 我可以使用这样的方法只更改标题,而保留其他所有内容作为默认主题吗? 我用的是主题,顺便说一句,黑色 下面是我正在使用的一些代码: res/values.themes.xml: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="customTheme

我需要更改我的应用程序标题背景色。我可以根据自己的想法来做这件事。但这不仅改变了我的标题,也改变了我的整个应用程序(编辑文本、按钮、微调器)。 我可以使用这样的方法只更改标题,而保留其他所有内容作为默认主题吗? 我用的是主题,顺便说一句,黑色

下面是我正在使用的一些代码: res/values.themes.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="customTheme" parent="android:Theme.Black"> 
    <item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item>   
</style> 
</resources>
在AndroidManifest中:

 <application
    android:icon="@drawable/ic_launcher_"
    android:label="@string/app_name"
    android:theme="@style/customTheme" >


提前谢谢。

重复问题,这是我的答案(还有其他答案)谢谢。我尝试了你的答案,将parent=“android:Theme.Black”更改为parent=“@android:style/Theme.Holo.Light”,这是我看到的唯一区别,但这仍然不起作用……上面的小错误。。。我把它改成了@android:style/Theme.Black。我甚至尝试了你的全部代码,但仍然没有成功……这里也有同样的问题:/
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/myTitle"
    android:text="This is my new title"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:textColor="@color/titletextcolor"
/>
</RelativeLayout>
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
    setContentView(R.layout.activity_auth);
    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);
}
 <application
    android:icon="@drawable/ic_launcher_"
    android:label="@string/app_name"
    android:theme="@style/customTheme" >