Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LayoutInflater layoutInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
- oView = layoutInflater.inflate(R.layout.activity_transperant, null);
- WindowManager.LayoutParams params = new WindowManager.LayoutParams(
- WindowManager.LayoutParams.TYPE_TOAST,
- 0 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
- PixelFormat.TRANSLUCENT);
- WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE);
- wm.addView(oView, params);
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:id = "@+id/rl1" >
- <LinearLayout
- android:id="@+id/linearSub"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:gravity="end"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/iconupload"
- android:layout_width="14dip"
- android:layout_height="14dip"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:rotation="0"
- android:src="@drawable/up_144"
- android:layout_centerInParent="true" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textSize="10dip"
- android:shadowColor="#7F000000"
- android:shadowDx="1"
- android:shadowDy="1"
- android:shadowRadius="2"
- android:textColor="#66FF00"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:gravity="center"
- android:text=" 0 Kb "
- android:id="@+id/tTX"/>
- <ImageView
- android:id="@+id/icondownload"
- android:layout_width="14dip"
- android:layout_height="14dip"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:src="@drawable/down_144"
- android:layout_centerInParent="true" />
- <TextView
- android:id="@+id/tRX"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:textColor="#66FF00"
- android:gravity="center"
- android:text=" 0 Kb"
- android:textSize="10dip" />
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement