============ Problem Description ============
To set a button in the TITLE bar, create a new title.xml, also in the OnCreate method called the requestwindowfeature (Window.feature_custom_title);
Setcontentview (R.layout.activity_main);
GetWindow (). Setfeatureint (Window.feature_custom_title,
R.LAYOUT.TITLE_BTN);
But the error, you cannot combine custom titles with the other title features, in accordance with several methods on the internet have tried, the result is not you cannot combine custom titles with OT Her title features is 03-26 01:54:02.073:e/androidruntime (2790): java.lang.RuntimeException:Unable to start activity Componentinfo{com.example.camera/com.example.camera.mainactivity}: Java.lang.IllegalStateException:You need to use A Theme.appcompat Theme (or descendant) with the this activity.
Can you tell me how to solve the problem of elder?
============ Solution 1============
Http://mobile.51cto.com/aprogram-387074.htm wants to help.
Title Style issues in Android