Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transparent Background

How can i make the background 50% transparent?
Let's say the background of an AbsoluteLayout so it's dark but you can still see through it?

like image 527
aryaxt Avatar asked Jun 24 '10 23:06

aryaxt


People also ask

How do I make my background transparent?

Go to Select > Invert. On the right side of the screen, right-click on your image and select Add Alpha Channel. This will provide a transparent background.

What is PNG transparency?

PNG – PNGs are the most common file type for transparent background logos. They can display millions of colors within a relatively small file size. Use these files whenever you're putting your logo on digital applications like websites, social media platforms, Powerpoint presentations, and more.

Is PNG transparent background?

Because PNGs can have transparent backgrounds, designers can layer them on different backgrounds and the backgrounds will show through. This makes the PNG format an excellent choice for utility assets.


1 Answers

You could apply a transparent theme to the required activity. Create a new style in /res/values/style.xml

<resources>
<style name="Transparent">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
<item name ="android:windowBackground">@color/transparent</item>
<item name="android:windowNoTitle">true</item>
<item name="android:colorForeground">#fff</item>
</style>
</resources>

The value of transparent is

<color name="transparent">#00000000</color>

Now in AndroidManifest.xml declare the theme of the activity to the one you just created.

<activity android:name="MyActivity" android:theme="@style/Transparent"></activity>
like image 57
Primal Pappachan Avatar answered Oct 24 '22 20:10

Primal Pappachan