Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:orientation="vertical" android:layout_width="match_parent"
  6. android:layout_height="wrap_content">
  7.  
  8. <android.support.v7.widget.AppCompatTextView
  9. android:id="@+id/view_story_votes"
  10. android:layout_width="80dp"
  11. android:layout_height="wrap_content"
  12. android:layout_margin="8dp"
  13. android:textSize="32sp"
  14. app:layout_constraintBottom_toBottomOf="parent"
  15. app:layout_constraintHorizontal_bias="0.375"
  16. app:layout_constraintLeft_toLeftOf="parent"
  17. app:layout_constraintRight_toLeftOf="@+id/view_story_guideline"
  18. app:layout_constraintTop_toTopOf="parent"
  19. tools:text="1234"
  20. android:textAlignment="center"/>
  21.  
  22. <android.support.constraint.Guideline
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:id="@+id/view_story_guideline"
  26. android:orientation="vertical"
  27. app:layout_constraintGuide_begin="88dp" />
  28.  
  29. <android.support.v7.widget.AppCompatTextView
  30. android:id="@+id/view_story_title"
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:layout_marginBottom="8dp"
  34. android:layout_marginLeft="8dp"
  35. android:layout_marginRight="8dp"
  36. android:layout_marginTop="8dp"
  37. app:layout_constraintHorizontal_bias="0.0"
  38. app:layout_constraintLeft_toLeftOf="@+id/view_story_guideline"
  39. app:layout_constraintRight_toRightOf="parent"
  40. app:layout_constraintTop_toTopOf="parent"
  41. tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
  42. android:textStyle="bold"
  43. android:textSize="18sp"
  44. />
  45.  
  46. <android.support.v7.widget.AppCompatTextView
  47. android:id="@+id/view_story_by"
  48. android:layout_width="0dp"
  49. android:layout_height="wrap_content"
  50. android:layout_marginBottom="8dp"
  51. android:layout_marginLeft="8dp"
  52. android:layout_marginRight="8dp"
  53. android:layout_marginTop="8dp"
  54. app:layout_constraintHorizontal_bias="0.0"
  55. app:layout_constraintLeft_toLeftOf="@+id/view_story_guideline"
  56. app:layout_constraintTop_toBottomOf="@id/view_story_title"
  57. tools:text="silentcon"
  58. />
  59.  
  60. <android.support.v7.widget.AppCompatTextView
  61. android:id="@+id/view_story_separator1"
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:layout_marginBottom="8dp"
  65. android:layout_marginLeft="8dp"
  66. android:layout_marginRight="8dp"
  67. android:layout_marginTop="8dp"
  68. android:text="@string/story_info_separator"
  69. app:layout_constraintTop_toBottomOf="@id/view_story_title"
  70. app:layout_constraintLeft_toRightOf="@id/view_story_by"/>
  71.  
  72. <android.support.v7.widget.AppCompatTextView
  73. android:id="@+id/view_story_domain"
  74. android:layout_width="0dp"
  75. android:layout_height="wrap_content"
  76. android:layout_marginBottom="8dp"
  77. android:layout_marginLeft="8dp"
  78. android:layout_marginRight="8dp"
  79. android:layout_marginTop="8dp"
  80. app:layout_constraintHorizontal_bias="0.0"
  81. app:layout_constraintLeft_toRightOf="@+id/view_story_separator1"
  82. app:layout_constraintTop_toBottomOf="@id/view_story_title"
  83. tools:text="google.com"
  84. />
  85.  
  86. <android.support.v7.widget.AppCompatTextView
  87. android:id="@+id/view_story_separator2"
  88. android:layout_width="0dp"
  89. android:layout_height="wrap_content"
  90. android:layout_marginBottom="8dp"
  91. android:layout_marginLeft="8dp"
  92. android:layout_marginRight="8dp"
  93. android:layout_marginTop="8dp"
  94. android:text="@string/story_info_separator"
  95. app:layout_constraintTop_toBottomOf="@id/view_story_title"
  96. app:layout_constraintLeft_toRightOf="@id/view_story_domain"/>
  97.  
  98. <android.support.v7.widget.AppCompatTextView
  99. android:id="@+id/view_story_time"
  100. android:layout_width="0dp"
  101. android:layout_height="wrap_content"
  102. android:layout_marginBottom="8dp"
  103. android:layout_marginLeft="8dp"
  104. android:layout_marginRight="8dp"
  105. android:layout_marginTop="8dp"
  106. app:layout_constraintLeft_toRightOf="@id/view_story_separator2"
  107. app:layout_constraintTop_toBottomOf="@id/view_story_title"
  108. tools:text="8 hours ago"
  109. />
  110.  
  111. <android.support.v7.widget.AppCompatTextView
  112. android:id="@+id/view_story_comments"
  113. android:layout_width="0dp"
  114. android:layout_height="wrap_content"
  115. android:layout_marginBottom="8dp"
  116. android:layout_marginLeft="8dp"
  117. android:layout_marginRight="8dp"
  118. android:layout_marginTop="8dp"
  119. app:layout_constraintLeft_toRightOf="@id/view_story_guideline"
  120. app:layout_constraintTop_toBottomOf="@id/view_story_by"
  121. app:layout_constraintBottom_toBottomOf="parent"
  122. tools:text="100 comments"
  123. />
  124. </android.support.constraint.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement