-4

I want to create this interface of action bar and status bar in my application in android studio

adneal
  • 30,484
  • 10
  • 122
  • 151
Aashish
  • 11
  • 1

2 Answers2

0

There are multiple methods to do that

  1. Create custom theme. You can do that by going to Tools->Android->Theme Editor and create your custom theme as per your requirement.
  2. You change the colorPrimary and colorPrimaryDark to @android:color/transparent in res->values->colors.xml.
  3. Create a custom tool bar and set its background like this android:setBackground="@android:color/transparent" and change the colorPrimarDark to @android:color/transparent in colors.xml. But for this method you have to select a noActionBar theme like - android:theme="@style/Theme.AppCompat.Light.NoActionBar.
Ashutosh Sagar
  • 981
  • 8
  • 20
0

Set Theme to Your Activity as below. style.xml

<style name="my_style" parent="Theme.AppCompat.NoActionBar">
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
        <item name="android:windowTranslucentStatus">true</item>

</style>