9
Benim kodudur: java kodunda tema:değiştirme araç çubuğu teması programlı
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
app:theme="@style/Toolbar_Theme"/>
Ben app değiştirmek istiyorum. Araç çubuğunun stilini değiştirmek için kullanılan toolbar.setTheme
gibi bir yöntem bulabilir miyim?
Yalnızca arka plan rengini ve başlık rengi kullanarak kodu değiştirebilirsiniz: toolbar.setBackgroundColor (Newcolor); toolbar.setTitleTextColor (titleColor); – Lazai
@Lazai Teşekkür ederim –
Bunu deneyin: https://stackoverflow.com/questions/31225189/how-to-change-appcompat-v21-toolbar-theme-programmatically –