|
@@ -0,0 +1,258 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout 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:background="@color/AppBackground"
|
|
|
+ tools:context=".view.fragments.EventListFragment">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/relativeLayout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:background="@color/AppBackground"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="Events"
|
|
|
+ android:textColor="@color/TextColor"
|
|
|
+ android:textSize="16sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageButton
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#00000000"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:padding="7dp"
|
|
|
+ android:src="@drawable/ic_sort"
|
|
|
+ app:tint="@color/TextColor" />
|
|
|
+
|
|
|
+ <ImageButton
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#00000000"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:padding="7dp"
|
|
|
+ android:src="@drawable/ic_filter"
|
|
|
+ app:tint="@color/TextColor" />
|
|
|
+
|
|
|
+ <ImageButton
|
|
|
+ android:id="@+id/search"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#00000000"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:padding="7dp"
|
|
|
+ android:src="@drawable/ic_search"
|
|
|
+ app:tint="@color/TextColor" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/relativeLayout"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="15dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="200dp"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:background="@drawable/black_border">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:padding="15dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/imageView2"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:src="@drawable/ic_sport_icon"
|
|
|
+ app:tint="@color/TextColor" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Jogging"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:textColor="@color/TextColor"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/imageView2"
|
|
|
+ android:layout_marginTop="5dp"/>
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="85dp"
|
|
|
+ android:layout_height="85dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView"
|
|
|
+ android:src="@drawable/place_photo"/>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:padding="15dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/linearLayout"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView2"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Nov 23 | 9:00"
|
|
|
+ android:textColor="@color/TextColor"
|
|
|
+ android:textSize="16dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:text="45 min"
|
|
|
+ android:textColor="@color/SubTextColor"
|
|
|
+ android:textSize="12dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView4"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:text="3km away"
|
|
|
+ android:textColor="@color/SubTextColor"
|
|
|
+ android:textSize="12dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/linearLayout" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView5"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Yaroslavskaya Ulitsa, 12, стр.2, Moscow, 129366"
|
|
|
+ android:textColor="@color/TextColor"
|
|
|
+ android:textSize="12dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView4" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/textView6"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView5">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/ic_people"
|
|
|
+ android:tint="@color/TextColor"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:text="2/5"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
+ android:textColor="@color/TextColor"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/textView6"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView5" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/textView6"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="Level 0.52 - 3.52"
|
|
|
+ android:textColor="@color/TextColor"
|
|
|
+ android:textSize="12dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ tools:layout_editor_absoluteX="15dp" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/btnOpenEventMap"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ android:background="@drawable/black_border"
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:paddingBottom="10dp"
|
|
|
+ android:paddingStart="20dp"
|
|
|
+ android:paddingEnd="20dp"
|
|
|
+ android:layout_marginBottom="40dp"
|
|
|
+ android:layout_marginStart="15dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/ic_map"
|
|
|
+ app:tint="@color/TextColor" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="View event map"
|
|
|
+ android:textColor="@color/TextColor"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:layout_marginStart="15dp"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|