Araç çubuğumu uygulamamın içine uygularken bu sorunu yaşıyorum ve uygulamayı çalıştırmayı denediğimde çöktü. önceki yazı ama şans yok. Ben ebeveyn = "@ tarzı/Theme.AppCompat.Light.NoActionBar" denedik ama çalıştıWindow.FEATURE_ACTION_BAR istemiyor ve windowActionBar öğesinin bir tema çubuğunu kullanmak yerine false olarak ayarlanmasını istemiyorsunuz.
<style name="ToolBarStyle" parent="@style/Theme.AppCompat.Light">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
style.xml: İşte benim kodudur.
Toolbar.xmal
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:theme="@style/ToolBarStyle" />
Manifest.axml
<application android:label="Capzure" android:theme="@style/ToolBarStyle" android:icon="@drawable/Icon"></application>
teşekkür ederiz.