Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///// ACTIVITY_RECEIVER XML
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v4.widget.DrawerLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- tools:openDrawer="start">
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:isScrollContainer="true"
- android:id="@+id/home">
- <com.example.cristinica.foodhelper.SlidingTabLayout
- android:id="@+id/tabsHome"
- android:layout_width="match_parent"
- android:layout_height="45dp"
- android:paddingTop="5dp"
- android:paddingBottom="5dp"
- android:background="@color/colorPrimary"
- app:tabMode="scrollable"
- />
- <android.support.v4.view.ViewPager
- android:id="@+id/view_pagerHome"
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:layout_weight="1">
- </android.support.v4.view.ViewPager>
- </LinearLayout>
- </android.support.v4.widget.DrawerLayout>
- ///// ACTIVITY_SETTINGS XML
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:textAlignment="center"
- tools:context="com.example.cristinica.foodhelper.SettingsActivity">
- <EditText
- android:id="@+id/editText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_centerHorizontal="true"
- android:layout_centerInParent="true"
- android:layout_centerVertical="true"
- android:layout_marginTop="14dp"
- android:ems="10"
- android:inputType="textPersonName"
- android:text="Tell more about you"
- android:textAlignment="center" />
- <RelativeLayout
- android:id="@+id/companyName"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_below="@+id/editText"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginTop="11dp">
- <ImageView
- android:id="@+id/imageView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="18dp"
- android:layout_marginStart="18dp"
- app:srcCompat="@drawable/user_name" />
- <EditText
- android:id="@+id/editText2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_marginLeft="13dp"
- android:layout_marginStart="13dp"
- android:layout_toEndOf="@+id/imageView"
- android:layout_toRightOf="@+id/imageView"
- android:ems="10"
- android:inputType="textPersonName"
- android:text="Nume" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/email"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_below="@+id/companyName"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginTop="11dp">
- <ImageView
- android:id="@+id/imageView2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="18dp"
- android:layout_marginStart="18dp"
- app:srcCompat="@drawable/envelope" />
- <EditText
- android:id="@+id/editText3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_marginLeft="13dp"
- android:layout_marginStart="13dp"
- android:layout_toEndOf="@+id/imageView2"
- android:layout_toRightOf="@+id/imageView2"
- android:ems="10"
- android:inputType="textPersonName"
- android:text="Email" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/address"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_below="@+id/email"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginTop="11dp">
- <ImageView
- android:id="@+id/imageView4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="18dp"
- android:layout_marginStart="18dp"
- app:srcCompat="@drawable/placeholder" />
- <EditText
- android:id="@+id/editText5"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_marginLeft="13dp"
- android:layout_marginStart="13dp"
- android:layout_toEndOf="@+id/imageView4"
- android:layout_toRightOf="@+id/imageView4"
- android:ems="10"
- android:inputType="textPersonName"
- android:text="Adresa" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/phone"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_below="@+id/address"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginTop="11dp">
- <ImageView
- android:id="@+id/imageView3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="18dp"
- android:layout_marginStart="18dp"
- app:srcCompat="@drawable/smartphone_call" />
- <EditText
- android:id="@+id/editText4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_marginLeft="13dp"
- android:layout_marginStart="13dp"
- android:layout_toEndOf="@+id/imageView3"
- android:layout_toRightOf="@+id/imageView3"
- android:ems="10"
- android:inputType="textPersonName"
- android:text="Numar de telefon" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/reprezentant"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_below="@+id/phone"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginTop="11dp">
- <ImageView
- android:id="@+id/imageView6"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="18dp"
- android:layout_marginStart="18dp"
- app:srcCompat="@drawable/user_name" />
- <EditText
- android:id="@+id/editText6"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_marginLeft="13dp"
- android:layout_marginStart="13dp"
- android:layout_toEndOf="@+id/imageView6"
- android:layout_toRightOf="@+id/imageView6"
- android:ems="10"
- android:inputType="textPersonName"
- android:text="Nume Reprezentant" />
- </RelativeLayout>
- <Button
- android:id="@+id/logout"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/reprezentant"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="25dp"
- android:text="Logout" />
- </RelativeLayout>
- ////// cards_layout.xml
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:orientation="vertical"
- android:layout_marginBottom="30dp">
- <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/card_view"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="4dp"
- android:src="@drawable/receive_food">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- >
- <ImageView
- android:id="@+id/coperta"
- android:layout_width="match_parent"
- android:layout_height="180dp"
- android:layout_alignParentTop="true"
- android:scaleType="centerCrop"
- />
- <TextView
- android:id="@+id/titlu"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:layout_below="@+id/coperta"
- android:layout_marginTop="14dp"
- android:maxLines="3"
- android:padding="8dp"
- android:text="Eveniment"
- android:textColor="#222"
- android:textSize="22dp"
- android:textStyle="bold"
- android:layout_alignParentLeft="true" />
- <TextView
- android:id="@+id/descriere"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignStart="@+id/locatie"
- android:layout_below="@+id/locatie"
- android:layout_alignParentStart="true"
- android:maxLines="3"
- android:padding="8dp"
- android:text="Cel mai tare eveniment"
- android:textColor="#666"
- android:textSize="14dp"
- android:layout_alignLeft="@+id/locatie"
- android:layout_alignParentLeft="true" />
- <TextView
- android:id="@+id/dates"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="130dp"
- android:layout_below="@+id/coperta"
- android:text="08.12.2017 - 09.12.2017"
- android:layout_marginLeft="130dp" />
- <TextView
- android:id="@+id/locatie"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:layout_below="@+id/titlu"
- android:padding="8dp"
- android:text="Parcul Izvor"
- android:layout_alignParentLeft="true" />
- </RelativeLayout>
- </android.support.v7.widget.CardView>
- </LinearLayout>
- ///////////////////// fragment_ask_for_food.xml
- <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context="com.example.cristinica.foodhelper.FoodFragment">
- <!-- TODO: Update blank fragment layout -->
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/hello_blank_fragment" />
- </FrameLayout>
- ////// fragment_search_food.xml
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingLeft="5dp"
- android:paddingRight="5dp"
- tools:context=".MainActivity"
- android:background="@color/myGrey">
- <android.support.v4.widget.SwipeRefreshLayout
- android:id="@+id/swipeRefreshLayout"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/my_recycler_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:scrollbars="vertical">
- </android.support.v7.widget.RecyclerView>
- </android.support.v4.widget.SwipeRefreshLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement