Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent" android:layout_height="match_parent">
  4.  
  5. <View android:id="@+id/view"
  6. android:layout_width="0dp"
  7. android:layout_height="0dp"
  8. android:layout_centerInParent="true"
  9. />
  10. <View
  11. android:id="@+id/your_view"
  12. android:layout_width="20dp"
  13. android:layout_height="20dp"
  14. android:layout_above="@+id/view"
  15. android:layout_centerHorizontal="true"
  16. />
  17.  
  18. </RelativeLayout>
  19.  
  20. <RelativeLayout>
  21. <View android:id="@+id/delimiter"
  22. android:layout_centerVertical="true"/>
  23.  
  24. <YourView android:layout_above="@+id/delimiter"
  25. android:layout_centerHorizontal="true" />
  26. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement