2014-10-26から1日間の記事一覧

ToolBarにStyleを設定する

<style name="MyToolbarStyle" parent="Widget.AppCompat.Toolbar"> <item name="android:background">@android:color/black</item> <item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item> <item name="theme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item> </style> あとはToolBarの属性内に適応する。

KitKatから採用された透明ステータスバーとナビゲーションバー

<style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="android:windowTranslucentNavigation">true</item> <item name="android:windowTranslucentStatus">true</item> </style> ナビゲーションバーは戻るボタンの部分。ステータスバーは上の通知部分。 ステータスバーを透明にすると、ステータスバー分のス…