Skip to content Skip to sidebar Skip to footer

Android Black And White Theme

i am trying to achieve theme like this but i can't find any help about it i am trying to get white action bar with black icons and text and status bar with black icons and white ba

Solution 1:

Here is your Solution

Try this

<?xml version="1.0" encoding="utf-8"?><android.support.design.widget.CoordinatorLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><android.support.design.widget.AppBarLayoutandroid:id="@+id/app_bar"android:layout_width="match_parent"android:layout_height="wrap_content"android:background="@android:color/white"><android.support.v7.widget.Toolbarandroid:id="@+id/ar_toolbar"android:layout_width="match_parent"android:layout_height="?attr/actionBarSize"android:background="?attr/colorPrimary"app:layout_scrollFlags="exitUntilCollapsed"app:popupTheme="@style/ThemeOverlay.AppCompat.Light"><TextViewandroid:id="@+id/toolbar_title"android:layout_width="match_parent"android:layout_height="wrap_content"android:text="Nilesh Rathod"android:textStyle="bold" /></android.support.v7.widget.Toolbar></android.support.design.widget.AppBarLayout></android.support.design.widget.CoordinatorLayout>

Theme

<stylename="AppTheme"parent="Theme.AppCompat.Light.NoActionBar"><itemname="colorPrimary">@android:color/white</item><itemname="colorPrimaryDark">@android:color/white</item><itemname="colorAccent">@color/colorAccent</item><itemname="colorControlNormal">#FFFFFF</item><itemname="android:windowLightStatusBar">true</item><itemname="android:statusBarColor">@android:color/white</item><itemname="android:windowDrawsSystemBarBackgrounds">true</item><itemname="android:windowTranslucentNavigation">false</item><itemname="android:navigationBarColor">#000</item></style>

OUTPUT

enter image description here

Post a Comment for "Android Black And White Theme"