Kayıtlar

Kotlin Action Bar Change etiketine sahip yayınlar gösteriliyor

Kotlinde Action Bar Rengini Değiştirme

  İlk iş olarak projemizde resource kısmında  colors altbölümüne giderek aşağıdaki kodu içine yapıştırız. <style name ="AppTheme" parent ="Theme.AppCompat.Light.NoActionBar" > <!-- Customize your theme here. --> <!-- This code is for changing the color of the bar. --> <!-- Type your colour code which you want to set in colorPrimary item --> <item name ="colorPrimary" > #0F9D58 </item> <item name ="colorPrimaryDark" > #BAC9D8 </item> <item name ="colorAccent" > #151414 </item> </style> <style name ="AppTheme.NoActionBar" > <item name ="windowActionBar" > true </item> <item name ="windowNoTitle" > true </item> </style> <!-- Define other styles to fix theme --> <style name ="AppTheme.AppBarOverlay" parent ="ThemeOverlay.AppCompat.Dark.ActionBar" /...