Advertisement
Tanver247

main.xml

Apr 16th, 2020
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.41 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:orientation="vertical"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent">
  8. <android.support.v7.widget.CardView
  9. android:layout_width="match_parent"
  10. android:layout_marginStart="5dp"
  11. android:layout_marginEnd="5dp"
  12. android:layout_marginTop="8dp"
  13. android:layout_marginBottom="4dp"
  14. app:cardCornerRadius="4dp"
  15. app:cardElevation="3dp"
  16. android:id="@+id/stateDataCard"
  17. android:layout_height="wrap_content">
  18. <RelativeLayout
  19. android:id="@+id/cardParentLayout"
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:paddingBottom="8dp"
  23. android:layout_margin="2dp">
  24. <TextView
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:id="@+id/txtOne"
  28. android:textColor="#000000"
  29. android:layout_alignParentStart="true"
  30. android:layout_marginStart="10dp"
  31. android:layout_marginTop="10dp"
  32. android:textSize="25sp"
  33. android:text="First Text"/>
  34. <TextView
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:text="View more"
  38. android:textAlignment="center"
  39. android:id="@+id/viewMoreText"
  40. android:layout_below="@+id/txtOne"
  41. android:layout_marginLeft="10dp"
  42. android:layout_marginTop="3dp"/>
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:layout_marginStart="10dp"
  47. android:layout_marginEnd="10dp"
  48. android:id="@+id/moreDataLayout"
  49. android:visibility="gone"
  50. android:orientation="vertical"
  51. android:layout_below="@id/cardParentLayout">
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal"
  56. android:weightSum="2">
  57. <LinearLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:layout_marginTop="10dp"
  61. android:layout_weight="1"
  62. android:layout_marginStart="5dp"
  63. android:gravity="center_horizontal"
  64. android:layout_marginEnd="5dp"
  65. android:orientation="vertical">
  66. <TextView
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:text="Secound Hidden Text"
  70. android:textStyle="bold"
  71. android:textSize="20sp"
  72. android:textColor="#000000"
  73. android:id="@+id/txtTwo"/>
  74. </LinearLayout>
  75. </LinearLayout>
  76. </LinearLayout>
  77. </RelativeLayout>
  78. </android.support.v7.widget.CardView>
  79. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement