Advertisement
cristi9512

Untitled

Mar 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.50 KB | None | 0 0
  1. ///// ACTIVITY_RECEIVER XML
  2.  
  3.  
  4. <?xml version="1.0" encoding="utf-8"?>
  5. <android.support.v4.widget.DrawerLayout
  6. xmlns:android="http://schemas.android.com/apk/res/android"
  7. xmlns:app="http://schemas.android.com/apk/res-auto"
  8. xmlns:tools="http://schemas.android.com/tools"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:fitsSystemWindows="true"
  12. tools:openDrawer="start">
  13.  
  14.  
  15.  
  16. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  17. xmlns:tools="http://schemas.android.com/tools"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:orientation="vertical"
  21. android:isScrollContainer="true"
  22. android:id="@+id/home">
  23.  
  24.  
  25. <com.example.cristinica.foodhelper.SlidingTabLayout
  26. android:id="@+id/tabsHome"
  27. android:layout_width="match_parent"
  28. android:layout_height="45dp"
  29. android:paddingTop="5dp"
  30. android:paddingBottom="5dp"
  31. android:background="@color/colorPrimary"
  32. app:tabMode="scrollable"
  33. />
  34.  
  35. <android.support.v4.view.ViewPager
  36. android:id="@+id/view_pagerHome"
  37. android:layout_height="match_parent"
  38. android:layout_width="match_parent"
  39. android:layout_weight="1">
  40.  
  41. </android.support.v4.view.ViewPager>
  42.  
  43. </LinearLayout>
  44.  
  45.  
  46.  
  47.  
  48.  
  49. </android.support.v4.widget.DrawerLayout>
  50.  
  51.  
  52.  
  53. ///// ACTIVITY_SETTINGS XML
  54.  
  55. <?xml version="1.0" encoding="utf-8"?>
  56. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  57. xmlns:app="http://schemas.android.com/apk/res-auto"
  58. xmlns:tools="http://schemas.android.com/tools"
  59. android:layout_width="match_parent"
  60. android:layout_height="match_parent"
  61. android:textAlignment="center"
  62. tools:context="com.example.cristinica.foodhelper.SettingsActivity">
  63.  
  64. <EditText
  65. android:id="@+id/editText"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_alignParentTop="true"
  69. android:layout_centerHorizontal="true"
  70. android:layout_centerInParent="true"
  71. android:layout_centerVertical="true"
  72. android:layout_marginTop="14dp"
  73. android:ems="10"
  74. android:inputType="textPersonName"
  75. android:text="Tell more about you"
  76. android:textAlignment="center" />
  77.  
  78. <RelativeLayout
  79. android:id="@+id/companyName"
  80. android:layout_width="match_parent"
  81. android:layout_height="50dp"
  82. android:layout_alignParentLeft="true"
  83. android:layout_alignParentStart="true"
  84. android:layout_below="@+id/editText"
  85. android:layout_marginLeft="10dp"
  86. android:layout_marginRight="10dp"
  87. android:layout_marginTop="11dp">
  88.  
  89. <ImageView
  90. android:id="@+id/imageView"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_alignParentLeft="true"
  94. android:layout_alignParentStart="true"
  95. android:layout_centerVertical="true"
  96. android:layout_marginLeft="18dp"
  97. android:layout_marginStart="18dp"
  98. app:srcCompat="@drawable/user_name" />
  99.  
  100. <EditText
  101. android:id="@+id/editText2"
  102. android:layout_width="wrap_content"
  103. android:layout_height="wrap_content"
  104. android:layout_alignParentBottom="true"
  105. android:layout_marginLeft="13dp"
  106. android:layout_marginStart="13dp"
  107. android:layout_toEndOf="@+id/imageView"
  108. android:layout_toRightOf="@+id/imageView"
  109. android:ems="10"
  110. android:inputType="textPersonName"
  111. android:text="Nume" />
  112. </RelativeLayout>
  113.  
  114.  
  115. <RelativeLayout
  116. android:id="@+id/email"
  117. android:layout_width="match_parent"
  118. android:layout_height="50dp"
  119. android:layout_alignParentLeft="true"
  120. android:layout_alignParentStart="true"
  121. android:layout_below="@+id/companyName"
  122. android:layout_marginLeft="10dp"
  123. android:layout_marginRight="10dp"
  124. android:layout_marginTop="11dp">
  125.  
  126. <ImageView
  127. android:id="@+id/imageView2"
  128. android:layout_width="wrap_content"
  129. android:layout_height="wrap_content"
  130. android:layout_alignParentLeft="true"
  131. android:layout_alignParentStart="true"
  132. android:layout_centerVertical="true"
  133. android:layout_marginLeft="18dp"
  134. android:layout_marginStart="18dp"
  135. app:srcCompat="@drawable/envelope" />
  136.  
  137. <EditText
  138. android:id="@+id/editText3"
  139. android:layout_width="wrap_content"
  140. android:layout_height="wrap_content"
  141. android:layout_alignParentBottom="true"
  142. android:layout_marginLeft="13dp"
  143. android:layout_marginStart="13dp"
  144. android:layout_toEndOf="@+id/imageView2"
  145. android:layout_toRightOf="@+id/imageView2"
  146. android:ems="10"
  147. android:inputType="textPersonName"
  148. android:text="Email" />
  149. </RelativeLayout>
  150.  
  151. <RelativeLayout
  152. android:id="@+id/address"
  153. android:layout_width="match_parent"
  154. android:layout_height="50dp"
  155. android:layout_alignParentLeft="true"
  156. android:layout_alignParentStart="true"
  157. android:layout_below="@+id/email"
  158. android:layout_marginLeft="10dp"
  159. android:layout_marginRight="10dp"
  160. android:layout_marginTop="11dp">
  161.  
  162. <ImageView
  163. android:id="@+id/imageView4"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:layout_alignParentLeft="true"
  167. android:layout_alignParentStart="true"
  168. android:layout_centerVertical="true"
  169. android:layout_marginLeft="18dp"
  170. android:layout_marginStart="18dp"
  171. app:srcCompat="@drawable/placeholder" />
  172.  
  173. <EditText
  174. android:id="@+id/editText5"
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:layout_alignParentBottom="true"
  178. android:layout_marginLeft="13dp"
  179. android:layout_marginStart="13dp"
  180. android:layout_toEndOf="@+id/imageView4"
  181. android:layout_toRightOf="@+id/imageView4"
  182. android:ems="10"
  183. android:inputType="textPersonName"
  184. android:text="Adresa" />
  185. </RelativeLayout>
  186.  
  187. <RelativeLayout
  188. android:id="@+id/phone"
  189. android:layout_width="match_parent"
  190. android:layout_height="50dp"
  191. android:layout_alignParentLeft="true"
  192. android:layout_alignParentStart="true"
  193. android:layout_below="@+id/address"
  194. android:layout_marginLeft="10dp"
  195. android:layout_marginRight="10dp"
  196. android:layout_marginTop="11dp">
  197.  
  198. <ImageView
  199. android:id="@+id/imageView3"
  200. android:layout_width="wrap_content"
  201. android:layout_height="wrap_content"
  202. android:layout_alignParentLeft="true"
  203. android:layout_alignParentStart="true"
  204. android:layout_centerVertical="true"
  205. android:layout_marginLeft="18dp"
  206. android:layout_marginStart="18dp"
  207. app:srcCompat="@drawable/smartphone_call" />
  208.  
  209. <EditText
  210. android:id="@+id/editText4"
  211. android:layout_width="wrap_content"
  212. android:layout_height="wrap_content"
  213. android:layout_alignParentBottom="true"
  214. android:layout_marginLeft="13dp"
  215. android:layout_marginStart="13dp"
  216. android:layout_toEndOf="@+id/imageView3"
  217. android:layout_toRightOf="@+id/imageView3"
  218. android:ems="10"
  219. android:inputType="textPersonName"
  220. android:text="Numar de telefon" />
  221. </RelativeLayout>
  222.  
  223. <RelativeLayout
  224. android:id="@+id/reprezentant"
  225. android:layout_width="match_parent"
  226. android:layout_height="50dp"
  227. android:layout_alignParentLeft="true"
  228. android:layout_alignParentStart="true"
  229. android:layout_below="@+id/phone"
  230. android:layout_marginLeft="10dp"
  231. android:layout_marginRight="10dp"
  232. android:layout_marginTop="11dp">
  233.  
  234. <ImageView
  235. android:id="@+id/imageView6"
  236. android:layout_width="wrap_content"
  237. android:layout_height="wrap_content"
  238. android:layout_alignParentLeft="true"
  239. android:layout_alignParentStart="true"
  240. android:layout_centerVertical="true"
  241. android:layout_marginLeft="18dp"
  242. android:layout_marginStart="18dp"
  243. app:srcCompat="@drawable/user_name" />
  244.  
  245. <EditText
  246. android:id="@+id/editText6"
  247. android:layout_width="wrap_content"
  248. android:layout_height="wrap_content"
  249. android:layout_alignParentBottom="true"
  250. android:layout_marginLeft="13dp"
  251. android:layout_marginStart="13dp"
  252. android:layout_toEndOf="@+id/imageView6"
  253. android:layout_toRightOf="@+id/imageView6"
  254. android:ems="10"
  255. android:inputType="textPersonName"
  256. android:text="Nume Reprezentant" />
  257. </RelativeLayout>
  258.  
  259. <Button
  260. android:id="@+id/logout"
  261. android:layout_width="wrap_content"
  262. android:layout_height="wrap_content"
  263. android:layout_below="@+id/reprezentant"
  264. android:layout_centerHorizontal="true"
  265. android:layout_marginTop="25dp"
  266. android:text="Logout" />
  267.  
  268. </RelativeLayout>
  269.  
  270.  
  271.  
  272.  
  273. ////// cards_layout.xml
  274.  
  275. <?xml version="1.0" encoding="utf-8"?>
  276. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  277. android:layout_width="match_parent"
  278. android:layout_height="wrap_content"
  279. xmlns:card_view="http://schemas.android.com/apk/res-auto"
  280. android:orientation="vertical"
  281. android:layout_marginBottom="30dp">
  282.  
  283.  
  284. <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  285. android:id="@+id/card_view"
  286. android:layout_width="match_parent"
  287. android:layout_height="wrap_content"
  288. android:layout_margin="4dp"
  289. android:src="@drawable/receive_food">
  290.  
  291. <RelativeLayout
  292. android:layout_width="match_parent"
  293. android:layout_height="match_parent"
  294. >
  295.  
  296. <ImageView
  297. android:id="@+id/coperta"
  298. android:layout_width="match_parent"
  299. android:layout_height="180dp"
  300. android:layout_alignParentTop="true"
  301. android:scaleType="centerCrop"
  302. />
  303.  
  304. <TextView
  305. android:id="@+id/titlu"
  306. android:layout_width="wrap_content"
  307. android:layout_height="wrap_content"
  308. android:layout_alignParentStart="true"
  309. android:layout_below="@+id/coperta"
  310. android:layout_marginTop="14dp"
  311. android:maxLines="3"
  312. android:padding="8dp"
  313. android:text="Eveniment"
  314. android:textColor="#222"
  315. android:textSize="22dp"
  316. android:textStyle="bold"
  317. android:layout_alignParentLeft="true" />
  318.  
  319. <TextView
  320. android:id="@+id/descriere"
  321. android:layout_width="wrap_content"
  322. android:layout_height="wrap_content"
  323. android:layout_alignStart="@+id/locatie"
  324. android:layout_below="@+id/locatie"
  325. android:layout_alignParentStart="true"
  326. android:maxLines="3"
  327. android:padding="8dp"
  328. android:text="Cel mai tare eveniment"
  329. android:textColor="#666"
  330. android:textSize="14dp"
  331. android:layout_alignLeft="@+id/locatie"
  332. android:layout_alignParentLeft="true" />
  333.  
  334. <TextView
  335. android:id="@+id/dates"
  336. android:layout_width="wrap_content"
  337. android:layout_height="wrap_content"
  338.  
  339. android:layout_marginStart="130dp"
  340. android:layout_below="@+id/coperta"
  341. android:text="08.12.2017 - 09.12.2017"
  342. android:layout_marginLeft="130dp" />
  343.  
  344. <TextView
  345. android:id="@+id/locatie"
  346. android:layout_width="wrap_content"
  347. android:layout_height="wrap_content"
  348. android:layout_alignParentStart="true"
  349. android:layout_below="@+id/titlu"
  350.  
  351. android:padding="8dp"
  352. android:text="Parcul Izvor"
  353. android:layout_alignParentLeft="true" />
  354.  
  355.  
  356. </RelativeLayout>
  357. </android.support.v7.widget.CardView>
  358.  
  359. </LinearLayout>
  360.  
  361.  
  362.  
  363. ///////////////////// fragment_ask_for_food.xml
  364.  
  365. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  366. xmlns:tools="http://schemas.android.com/tools"
  367. android:layout_width="match_parent"
  368. android:layout_height="match_parent"
  369. tools:context="com.example.cristinica.foodhelper.FoodFragment">
  370.  
  371. <!-- TODO: Update blank fragment layout -->
  372. <TextView
  373. android:layout_width="match_parent"
  374. android:layout_height="match_parent"
  375. android:text="@string/hello_blank_fragment" />
  376.  
  377. </FrameLayout>
  378.  
  379.  
  380.  
  381. ////// fragment_search_food.xml
  382.  
  383. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  384. xmlns:tools="http://schemas.android.com/tools"
  385. android:layout_width="match_parent"
  386. android:layout_height="match_parent"
  387.  
  388. android:paddingLeft="5dp"
  389. android:paddingRight="5dp"
  390.  
  391. tools:context=".MainActivity"
  392. android:background="@color/myGrey">
  393. <android.support.v4.widget.SwipeRefreshLayout
  394. android:id="@+id/swipeRefreshLayout"
  395. android:layout_width="match_parent"
  396. android:layout_height="match_parent">
  397.  
  398. <android.support.v7.widget.RecyclerView
  399. android:id="@+id/my_recycler_view"
  400. android:layout_width="match_parent"
  401. android:layout_height="match_parent"
  402. android:scrollbars="vertical">
  403. </android.support.v7.widget.RecyclerView>
  404. </android.support.v4.widget.SwipeRefreshLayout>
  405.  
  406. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement