Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. LayoutInflater layoutInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
  2. oView = layoutInflater.inflate(R.layout.activity_transperant, null);
  3. WindowManager.LayoutParams params = new WindowManager.LayoutParams(
  4. WindowManager.LayoutParams.TYPE_TOAST,
  5. 0 | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
  6. PixelFormat.TRANSLUCENT);
  7. WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE);
  8. wm.addView(oView, params);
  9.  
  10. <?xml version="1.0" encoding="utf-8"?>
  11. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12. android:layout_width="fill_parent"
  13. android:layout_height="fill_parent"
  14. android:id = "@+id/rl1" >
  15.  
  16. <LinearLayout
  17. android:id="@+id/linearSub"
  18. android:layout_width="fill_parent"
  19. android:layout_height="fill_parent"
  20. android:gravity="end"
  21. android:orientation="horizontal">
  22.  
  23. <ImageView
  24. android:id="@+id/iconupload"
  25. android:layout_width="14dip"
  26. android:layout_height="14dip"
  27. android:layout_alignParentLeft="true"
  28. android:layout_alignParentTop="true"
  29. android:rotation="0"
  30. android:src="@drawable/up_144"
  31. android:layout_centerInParent="true" />
  32.  
  33. <TextView
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:textSize="10dip"
  37. android:shadowColor="#7F000000"
  38. android:shadowDx="1"
  39. android:shadowDy="1"
  40. android:shadowRadius="2"
  41. android:textColor="#66FF00"
  42. android:layout_alignParentLeft="true"
  43. android:layout_alignParentTop="true"
  44. android:gravity="center"
  45. android:text=" 0 Kb "
  46. android:id="@+id/tTX"/>
  47.  
  48.  
  49. <ImageView
  50. android:id="@+id/icondownload"
  51. android:layout_width="14dip"
  52. android:layout_height="14dip"
  53. android:layout_alignParentLeft="true"
  54. android:layout_alignParentTop="true"
  55. android:src="@drawable/down_144"
  56. android:layout_centerInParent="true" />
  57.  
  58. <TextView
  59. android:id="@+id/tRX"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_alignParentRight="true"
  63. android:textColor="#66FF00"
  64. android:gravity="center"
  65. android:text=" 0 Kb"
  66. android:textSize="10dip" />
  67.  
  68. </LinearLayout>
  69.  
  70. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement