How to Make Activity Transparent in Android

How to Make Activity Transparent in Android?

Activity transparency is an important feature in Android. That allows users to control information about their apps is displayed. Using this way, you can better manage your time and keep your device smoothly. With this feature, users can choose to see only the app details or the full app icon. In this blog, we will teach you how to make activity transparent in Android!

It gives users control over how much information they want to see and makes it easier to find the app. By following these easy steps, you will be able to make activity transparent in Android. So, scroll down and read the complete article carefully.

[irp posts=”3180″ name=”How to Install Android 5.1 on HP Touchpad?”]

What is Status Bar in Android phones?

Status Bar is a system bar that is located on the top of every Android phone. It provides quick access to your phone. It is the most important feature of your Android device. This feature shows you the date and time, battery level, signal strength, and other notifications at the top of your Android screen. It’s called the status bar on your Android.

What is Transparent Activity in Android?

Activity Transparent in Android

Transparent Activity is one kind of resource file in Android that will not be visible. But, if you create a transparent activity it will be run in the android application and work perfectly. The most advantage is the transparent activity that you can create a transparent activity just by changing the resource file. You don’t need to write Java or Kotlin coding.

[irp posts=”3220″ name=”How to Connect A USB Modem to an Android Tablet-Best Guide”]

How to Create a Transparent Activity in Android?

There are a few different ways that you can create a transparent activity in Android. We will build a simple application that will be displayed a simple “Textview” inside a transparent activity.  You will be able to create different styles of Transparent Activity.

First of all, for creating transparent activity in android you need “Android Studio” software on your computer. We will use the “Kotlin Programing Language“to build a new project using Android studio.

Where will show a “TextView” completed a transparent activity. It also makes Android activity transparent in other apps. Don’t worry; it won’t be hard for you. We will provide you with all codes. If you don’t know the Kotlin programing language, it is no problem for you.  But, if you follow our steps you will be able to create transparent activity easily.

Note: When you are creating an activity in Android, it is important to make it as transparent as possible. This can be done by setting the visibility of the activity to Visible. There are a few other settings that can be adjusted to make the activity more transparent, such as setting the transparency of the background to Transparent.

By making your activity as transparent as possible, you will allow the user to understand what is happening without having to launch another app or visit a separate website. Additionally, you can also use animations and effects to make the activity look more dynamic and engaging. By doing this, you will keep the user engaged and drawn into your app.

[irp posts=”792″ name=”4 Share Apps – File Transfer Apk Download for Android”]

How to Make Activity Transparent in Android? Step by Step Implementation Below:

You need to install an Android Studio application on your computer to create a new project file in Android Studio. After completing the installation Android Studio software you are ready to create Transparent Activity. Follow the step by step procedure below to create transparent activity in Android Studio:

First of all, to create new project open the Android Studio software, and then go to File>New Project. In this step, you will get some window fill up all window requirements to start new project. After that, add your needed code from here:

  • Add the Following Code: res/values/styles.xml and add themes.xml inside it.


<!– Base application theme. –>

<style name=”Theme.AppCompat.transparent” parent=”Theme.AppCompat.NoActionBar”>

<item name=”android:background”>#44000000</item>

<item name=”android:windowNoTitle”>true</item>

<item name=”android:windowBackground”>@android:color/transparent</item>

<item name=”android:colorBackgroundCacheHint”>@null</item>

<item name=”android:windowIsTranslucent”>true</item>

<item name=”android:windowAnimationStyle”>@android:style/Animation</item>



  • Add the Following Code: xml to change the theme name and  Transparent color code).

<?xml version=”1.0″ encoding=”utf-8″?>

<manifest xmlns:android=””








android:theme=”@style/Theme.AppCompat.transparent”>///change the theme name here //

<activity android:name=”.MainActivity”>


<action android:name=”android.intent.action.MAIN” />

<category android:name=”android.intent.category.LAUNCHER” />





Transparent Preview Result Here:

Activity Transparent done result


  • Add the Following Code: kt to add the MainActivity.kt.

package com.sagar.transparentactivityinandroid


import android.os.Bundle

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {





  • Add the Following Code: XML to add the activity_main.xml

<?xml version=”1.0″ encoding=”utf-8″?>

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android=””











android:text=”Developers Dome\nTransparent Activity”






app:layout_constraintTop_toTopOf=”parent” />
















app:layout_constraintVertical_bias=”0.904″ />


Run the Program Now:

If you have completed all steps from the above section. Now it is time to run the program or expected output result. I think, if you fill all the steps carefully. It will be run successfully.

[irp posts=”2862″ name=”How To Create an Apple ID for a Child Under 13″]

How do I change the transparency on Android?

Basically,  changing the transparency on Android is easy, and it just requires a few simple steps. To do this, open the Settings app on your phone and scroll down to the Display section. Here, you will find the Transparency option. You can adjust the transparency of the phone interface by sliding the slider to the desired level. Be sure to experiment with different levels to see which one works best for you.

Transparency creates the UI look more splendid. And you can also find numerous transparent themes on Android. However, I will share with you how to change the transparency on your Android by following the steps below-

  • First of all, go to the Android Studio software and open it on your PC.
  • Then, find the color option and then hit this option on the Android Studio editor.
  • Now change the Alpha value with percentage as you want.
  • You will see XML which doubles values.
  • For API 11+, the range is between 0f to1f.
  • Provide values and then run.
  • Finally, see the program run result.

Final Words

Finally, I would like to tell to you, I tried to share a piece of knowledge about how to make Activity Transparent in Android? If you follow our instructions or steps carefully, I hope you will be able to make Activity Transparent on your Android device easily. If you face any issue when you make this Activity Transparent you can share with us about your issue by comment section. We will try to give a solution from our end.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top