diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-12-08 14:58:31 +0100 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-12-08 14:58:31 +0100 |
commit | 5890d30b3bb77175d114e7c0630ec4038154365c (patch) | |
tree | 61facd19ff9bc0bbb2107d505f13dcb35689b784 /Client/BrzoDoLokacije/app/src/main/res/layout | |
parent | f9d930da33a4a31aac2578b9943271d6340623d2 (diff) |
Dodat broj omiljenih objava na back-u. Napravljen dizajn fragmenta za prikaz statistike
Diffstat (limited to 'Client/BrzoDoLokacije/app/src/main/res/layout')
-rw-r--r-- | Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile_statistics.xml | 88 |
1 files changed, 80 insertions, 8 deletions
diff --git a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile_statistics.xml b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile_statistics.xml index d5d72d1..fc1152b 100644 --- a/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile_statistics.xml +++ b/Client/BrzoDoLokacije/app/src/main/res/layout/fragment_profile_statistics.xml @@ -23,7 +23,17 @@ <TextView android:layout_width="100dp" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + android:layout_marginRight="5dp" + android:text="Broj pregleda" + android:gravity="center"/> + <TextView + android:id="@+id/tvProfileStatisticsViews" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="0" + android:textSize="20dp" + android:gravity="center"/> </LinearLayout> @@ -39,11 +49,21 @@ <ImageView android:layout_width="50dp" android:layout_height="50dp" - android:src="@drawable/ic_total_views" /> + android:src="@drawable/ic_baseline_star_24" /> <TextView android:layout_width="100dp" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + android:layout_marginRight="5dp" + android:text="Broj ocena" + android:gravity="center"/> + <TextView + android:id="@+id/tvProfileStatisticsRatingNumber" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="0" + android:textSize="20dp" + android:gravity="center"/> </LinearLayout> @@ -59,11 +79,52 @@ <ImageView android:layout_width="50dp" android:layout_height="50dp" - android:src="@drawable/ic_total_views" /> + android:src="@drawable/ic_baseline_star_half_24" /> + + <TextView + android:layout_width="100dp" + android:layout_height="match_parent" + android:layout_marginRight="5dp" + android:text="Prosečna ocena po objavi" + android:gravity="center"/> + <TextView + android:id="@+id/tvProfileStatisticsAverageRating" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="0" + android:textSize="20dp" + android:gravity="center"/> + + + </LinearLayout> + <LinearLayout + android:id="@+id/linearLayout7" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/linearLayout5"> + + <ImageView + android:layout_width="50dp" + android:layout_height="50dp" + android:src="@drawable/ic_baseline_favorite_24" /> <TextView android:layout_width="100dp" - android:layout_height="match_parent" /> + android:layout_height="match_parent" + android:layout_marginRight="5dp" + android:text="Broj omiljenih objava" + android:gravity="center"/> + <TextView + android:id="@+id/tvProfileStatisticsFavouriteNumber" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="0" + android:textSize="20dp" + android:gravity="center"/> + </LinearLayout> @@ -74,18 +135,29 @@ android:orientation="horizontal" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/linearLayout5"> + app:layout_constraintTop_toBottomOf="@+id/linearLayout7"> <ImageView android:layout_width="50dp" android:layout_height="50dp" - android:src="@drawable/ic_total_views" /> + android:src="@drawable/ic_baseline_calendar_month_24" /> <TextView android:layout_width="100dp" - android:layout_height="match_parent" /> + android:layout_marginRight="5dp" + android:layout_height="match_parent" + android:text="Pregledi po mesecima" + android:gravity="center"/> </LinearLayout> + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/rvFragmentProfileStatisticsMonths" + 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/linearLayout6" /> + </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |