Advertisement
Guest User

activity_project

a guest
Aug 14th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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:id="@+id/container"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. tools:context=".LandingPage.LandingPageProjectLocal">
  9.  
  10. <LinearLayout
  11. android:id="@+id/searchbar"
  12. android:layout_width="match_parent"
  13. android:layout_height="50dp"
  14. android:background="@color/colorAccent">
  15.  
  16. <!--<View-->
  17. <!--android:id="@+id/searchView_stranger"-->
  18. <!--android:layout_width="match_parent"-->
  19. <!--android:layout_height="1dp"-->
  20. <!--android:layout_weight="2"-->
  21. <!--android:background="@color/colorRed"-->
  22. <!--android:visibility="gone" />-->
  23.  
  24. <TextView
  25. android:id="@+id/search_stranger"
  26. android:layout_width="match_parent"
  27. android:layout_height="50dp"
  28. android:textStyle="bold"
  29. android:textSize="40sp"
  30. android:text="SEARCH"
  31. android:textColor="@color/colorWhite"
  32. android:textAlignment="center"/>
  33. </LinearLayout>
  34.  
  35.  
  36. <LinearLayout
  37. android:layout_marginTop="50dp"
  38. android:id="@+id/header_stranger"
  39. android:layout_width="match_parent"
  40. android:layout_height="@dimen/size_50"
  41. android:orientation="horizontal"
  42. android:weightSum="10">
  43.  
  44. <LinearLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="match_parent"
  47. android:layout_weight="5"
  48. android:orientation="vertical"
  49. android:weightSum="10">
  50.  
  51. <TextView
  52. android:id="@+id/local_stranger"
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent"
  55. android:layout_weight="8"
  56. android:gravity="center"
  57. android:text="Local"
  58. android:textAlignment="center"
  59. android:textColor="@color/black_header"
  60. android:textSize="@dimen/font_16"
  61. android:textStyle="bold" />
  62.  
  63. <View
  64. android:id="@+id/localView_stranger"
  65. android:layout_width="match_parent"
  66. android:layout_height="1dp"
  67. android:layout_weight="2"
  68. android:background="@color/colorCyan_27AAE2"
  69. android:visibility="gone" />
  70. </LinearLayout>
  71.  
  72. <LinearLayout
  73. android:layout_width="match_parent"
  74. android:layout_height="match_parent"
  75. android:layout_weight="5"
  76. android:orientation="vertical">
  77.  
  78. <TextView
  79. android:id="@+id/overseas-stranger"
  80. android:layout_width="match_parent"
  81. android:layout_height="match_parent"
  82. android:layout_weight="8"
  83. android:gravity="center"
  84. android:text="Overseas"
  85. android:textAlignment="center"
  86. android:textColor="@color/black_header"
  87. android:textSize="@dimen/font_16"
  88. android:textStyle="bold" />
  89.  
  90. <View
  91. android:id="@+id/overseasView_stranger"
  92. android:layout_width="match_parent"
  93. android:layout_height="1dp"
  94. android:layout_weight="2"
  95. android:background="@color/colorCyan_27AAE2"
  96. android:visibility="gone" />
  97. </LinearLayout>
  98. </LinearLayout>
  99.  
  100. <android.support.v7.widget.RecyclerView
  101. app:layoutManager="android.support.v7.widget.GridLayoutManager"
  102. app:spanCount="2"
  103. android:layout_below="@id/header_stranger"
  104. android:layout_width="match_parent"
  105. android:layout_height="match_parent"
  106. android:layout_marginTop="16dp"
  107. android:layout_marginLeft="16dp"
  108. android:layout_marginRight="16dp"
  109. android:id="@+id/recyclerviewid">
  110.  
  111. </android.support.v7.widget.RecyclerView>
  112.  
  113. <android.support.design.widget.BottomNavigationView
  114. android:id="@+id/nav_view"
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:layout_alignParentBottom="true"
  118. android:layout_gravity="bottom"
  119. android:background="@color/colorPrimary"
  120. app:itemIconTint="@drawable/selector"
  121. app:itemTextColor="@drawable/selector"
  122. app:labelVisibilityMode="labeled"
  123. app:menu="@menu/bottom_nav_menu" />
  124.  
  125. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement