1

I want to create a transparent Activity that load when we open the application on top of another Activity exactly like this.

I want that picture to be clicked and then it open the browser to open the link integrated with this image

How can I achieve this?

Saro Taşciyan
  • 5,210
  • 5
  • 31
  • 50
  • i think this might be useful http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android?rq=1 – karan Jan 28 '14 at 13:50
  • Dialog dialog = new Dialog(WelcomeScreenActivity.this, R.style.CustomDialogTheme); WindowManager.LayoutParams WMLP = dialog.getWindow().getAttributes(); WMLP.x = 0; WMLP.y = 0; WMLP.dimAmount = 0.0f; dialog.getWindow().setAttributes(WMLP); dialog.show(); this in code add this in style.xml – kumar Jan 28 '14 at 13:50
  • @kumar Please where do I add the picture and the link? – user3244729 Jan 28 '14 at 14:16

1 Answers1

0
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/root"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
android:background="@android:color/transparent"
    android:orientation="vertical" >

    <ImageView
    android:id="@+id/imageView1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:padding="2dp"
    android:background="@drawable/videobackground"
     />

</RelativeLayout>
Dakshesh Khatri
  • 639
  • 7
  • 12