When you customize the title bar for Android, use the following method:
- Requestwindowfeature (Window.feature_custom_title);
- Setcontentview (R.layout.main);
- GetWindow (). Setfeatureint (Window.feature_custom_title,r.layout.mycustomtitle);
- }
Logcat Error "cannot combine custom titles with other title features"
Reason:
Because it was used in the manifest file.
Android:theme= "@style/apptheme" >
Workaround:
in Style.xml, add this phrase " <item name= "Android:windowactionbar" >false</item> "as follows:
<span style= "color: #333333;" ><resources> <!--Base application theme, dependent on API level. This theme are replaced by Appbasetheme from Res/values-vxx/styles.xml on newer devices. --<style name= "Appbasetheme" parent= "Android:Theme.Light" > <!--Theme customizations av Ailable in newer API levels can go in res/values-vxx/styles.xml, while customizations related to BAC Kward-compatibility can go here. -</style> <!--application theme. --<style name= "Apptheme" parent= "Appbasetheme" > <!--all customizations that is not specific to a Particular api-level can go here. --</span><span style= "color: #ff0000;" ><item name= "Android:windowactionbar" >false</item> </span><span style= "color: #333333;" > </style></resources></span>
Android Custom TitleBar title bar conflict Issues