Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. <GridLayout
  2. android:id="@+id/tracker_control_modal"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/master_blue_dark_transparent"
  8. android:columnCount="1"
  9. android:rowCount="1"
  10. >
  11.  
  12. <LinearLayout
  13. android:id="@+id/tracker_control_root"
  14. android:layout_width="wrap_content"
  15. android:layout_height="wrap_content"
  16. android:orientation="vertical"
  17. android:background="@color/master_white"
  18. android:layout_column="0"
  19. android:layout_row="0"
  20. android:layout_gravity="center">
  21.  
  22. <GridLayout
  23. style="@style/Style_TrackerControl_Item"
  24. android:id="@+id/tracker_control_item_preference">
  25.  
  26. <Button
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:text="close"
  30. android:id="@+id/close_button"/>
  31. </GridLayout>
  32.  
  33.  
  34. </LinearLayout>
  35.  
  36. </GridLayout>
  37.  
  38. android:alpha="0.5" // - 50%
  39. android:alpha="1" // - 100% (непрозрачный)
  40.  
  41. textView.getBackground().setAlpha(80);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement