Advertisement
inf926k

Untitled

Jan 2nd, 2017
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_height="wrap_content"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. tools:backgroundTint="@color/white"
  7. app:cardElevation="2dp"
  8. android:layout_margin="8dp"
  9. android:layout_marginBottom="14dp"
  10. android:layout_width="match_parent">
  11.  
  12. <LinearLayout
  13. android:orientation="vertical"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content">
  16.  
  17. <ImageView
  18. tools:maxHeight="300dp"
  19. tools:scaleType="centerCrop"
  20. tools:src="@drawable/doc_placeholder"
  21. android:adjustViewBounds="true"
  22. android:id="@+id/imageView"
  23. android:layout_width="fill_parent"
  24. android:layout_height="wrap_content" />
  25.  
  26. <RelativeLayout
  27. android:layout_marginTop="8dp"
  28. android:layout_marginBottom="8dp"
  29. android:layout_width="match_parent"
  30. android:layout_height="20dp">
  31.  
  32. <View
  33. android:background="@color/lineColor"
  34. style="@style/card_item_line_horizontal"
  35. android:layout_centerVertical="true"
  36. android:layout_height="1px"
  37. android:layout_toLeftOf="@+id/pageNumTextView" />
  38. <View
  39. android:background="@color/lineColor"
  40. style="@style/card_item_line_horizontal"
  41. android:layout_centerVertical="true"
  42. android:layout_height="1px"
  43. android:layout_toRightOf="@+id/pageNumTextView" />
  44.  
  45. <TextView
  46. android:textColor="@color/lineColor"
  47. android:layout_marginLeft="8dp"
  48. android:layout_marginRight="8dp"
  49. android:id="@+id/pageNumTextView"
  50. android:layout_centerVertical="true"
  51. android:layout_centerHorizontal="true"
  52. android:textSize="16sp"
  53. tools:text="23"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content" />
  56. </RelativeLayout>
  57.  
  58. </LinearLayout>
  59. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement