• Latest Code...

    How to create Transparent Activity in Android?

    You have to add the following style In your res/values/styles.xml file (if you don’t have one, create it.) Here’s a  gnobal code from stackoverflow.

    <?xml version="1.0" encoding="utf-8"?>
    <style name="Theme.Transparent" parent="android:Theme">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:backgroundDimEnabled">false</item>
    (the value @color/transparent is the color value #00000000 which I put in res/values/color.xmlfile. You can also use @android:color/transparent in later Android versions)
    Then apply the style to your activity, for example:
    <activity android:name=".SampleActivity" android:theme="@style/Theme.Transparent">
    Another way to make transparentable, like this
    <activity android:name=".usual.activity.Declaration" android:theme="@android:style/Theme.Translucent.NoTitleBar" />

     If you want to using ShowCaseView then try this:
    Using this:
    View showcasedView = findViewById(R.id.view_to_showcase);
    ViewTarget target = new ViewTarget(showcasedView);
    ShowcaseView.insertShowcaseView(target, this, R.string.showcase_title, R.string.showcase_details);

    Here is the best example of dwonload code from : AndroidHub4You 

    1 comment:

    1. Very clear to and transparent activity in android. Something that students will find very useful in updating their android. Unlike the ones from http://topwritingreviews.com/services/essaylib which are unreliable and not clear.



    Most recent Elastic Search tutorials for beginner, intermediate and advance level developer, Yubraj Pokharel, in CodingWorkspace